Fix more calls to password check function

This commit is contained in:
Jamie Cameron
2012-03-29 22:40:44 -07:00
parent 74ea1f9da8
commit d19d0a81b8
3 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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);
}