mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 08:40:24 +00:00
Better handle the default mode
This commit is contained in:
@@ -56,7 +56,8 @@ else {
|
||||
|
||||
# Allow logins by root
|
||||
$root = &find_value("PermitRootLogin", $conf);
|
||||
@opts = ( [ '', $text{'default'}.' ('.$text{'users_nopwd'}.')' ],
|
||||
$rldef = $version{'number'} >= 7 ? $text{'users_nopwd'} : $text{'yes'};
|
||||
@opts = ( [ '', $text{'default'}.' ('.$rldef.')' ],
|
||||
[ 'yes', $text{'yes'} ],
|
||||
[ 'no', $text{'no'} ] );
|
||||
if ($version{'type'} eq 'ssh') {
|
||||
|
||||
Reference in New Issue
Block a user