Permalink
Browse files

Fix more calls to password check function

  • Loading branch information...
jcameron committed Mar 30, 2012
1 parent 74ea1f9 commit d19d0a81b88821150bca13e9e987769bd02e6bb7
Showing with 3 additions and 3 deletions.
  1. +1 −1 cluster-passwd/change-passwd.pl
  2. +1 −1 cluster-passwd/save_passwd.cgi
  3. +1 −1 cluster-useradmin/save_user.cgi
@@ -48,7 +48,7 @@
$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);
}

0 comments on commit d19d0a8

Please sign in to comment.