mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Fix more calls to password check function
This commit is contained in:
@@ -48,7 +48,7 @@ $again =~ s/\r|\n//g;
|
||||
$pass eq $again || &errordie("Passwords don't match");
|
||||
|
||||
# Check password sanity
|
||||
$err = &useradmin::check_password_restrictions($pass, $ARGV[0]);
|
||||
$err = &useradmin::check_password_restrictions($pass, $ARGV[0], $user);
|
||||
&errordie($err) if ($err);
|
||||
|
||||
# Do it on all servers
|
||||
|
||||
@@ -22,7 +22,7 @@ if ($access{'repeat'}) {
|
||||
$in{'new'} eq $in{'repeat'} || &error($passwd::text{'passwd_erepeat'});
|
||||
}
|
||||
$err = &useradmin::check_password_restrictions(
|
||||
$in{'new'}, $user->{'user'});
|
||||
$in{'new'}, $user->{'user'}, $user);
|
||||
&error($err) if ($err);
|
||||
|
||||
# Output header
|
||||
|
||||
@@ -62,7 +62,7 @@ $in{'home_def'} || $in{'home'} =~ /^\// ||
|
||||
# Validate password
|
||||
if ($in{'passmode'} == 3) {
|
||||
local $err = &useradmin::check_password_restrictions(
|
||||
$in{'pass'}, $user{'user'});
|
||||
$in{'pass'}, $user{'user'}, \%user);
|
||||
&error($err) if ($err);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user