$oldtheme = $gconfig{'theme'};
}
+# Validate the password
+if ($access{'pass'} && &can_change_pass($user) && !$in{'pass_def'}) {
+ $in{'pass'} =~ /:/ && &error($text{'change_ecolon'});
+ $perr = &acl::check_password_restrictions(
+ $user->{'name'}, $in{'pass'});
+ &error(&text('change_epass', $perr)) if ($perr);
+ }
+
print "$text{'change_user'}<br>\n";
if ($access{'lang'}) {
if ($in{'lang_def'}) {
$newtheme = $gconfig{'theme'};
}
}
-if ($access{'pass'} && &can_change_pass($user)) {
- if (!$in{'pass_def'}) {
- $in{'pass'} =~ /:/ && &error($text{'change_ecolon'});
- $user->{'pass'} = &acl::encrypt_password($in{'pass'});
- }
+if ($access{'pass'} && &can_change_pass($user) && !$in{'pass_def'}) {
+ $user->{'pass'} = &acl::encrypt_password($in{'pass'});
}
&acl::modify_user($user->{'name'}, $user);
print "$text{'change_done'}<p>\n";
change_restart=Re-starting Webmin ..
change_redirect=Re-directing to main menu ..
change_ecolon=Your password cannot contain the : character
+change_epass=New password is not valid : $1
acl_lang=Can change language?
acl_theme=Can change theme?