summaryrefslogtreecommitdiffstats
path: root/userprefs.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'userprefs.cgi')
-rwxr-xr-xuserprefs.cgi3
1 files changed, 1 insertions, 2 deletions
diff --git a/userprefs.cgi b/userprefs.cgi
index 017c7c94d..9a1a93717 100755
--- a/userprefs.cgi
+++ b/userprefs.cgi
@@ -97,9 +97,8 @@ sub SaveAccount {
if ($pwd1 ne "" || $pwd2 ne "")
{
- ($pwd1 eq $pwd2) || ThrowUserError("passwords_dont_match");
$::FORM{'new_password1'} || ThrowUserError("new_password_missing");
- ValidatePassword($pwd1);
+ ValidatePassword($pwd1, $pwd2);
my $cryptedpassword = SqlQuote(Crypt($pwd1));
SendSQL("UPDATE profiles