From 261e207c1170cf374467cc422bd76a861110b8ab Mon Sep 17 00:00:00 2001 From: "jocuri%softhome.net" <> Date: Wed, 3 Mar 2004 13:19:28 +0000 Subject: Patch for bug 123077; improve the ValidatePassword sub so that a password change is no longer accepted with a blank second field; r=kiko, a=justdave. --- globals.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'globals.pl') diff --git a/globals.pl b/globals.pl index 9c1b9a7ef..91fd05554 100644 --- a/globals.pl +++ b/globals.pl @@ -706,7 +706,7 @@ sub ValidatePassword { ThrowUserError("password_too_short"); } elsif (length($password) > 16) { ThrowUserError("password_too_long"); - } elsif ($matchpassword && $password ne $matchpassword) { + } elsif ((defined $matchpassword) && ($password ne $matchpassword)) { ThrowUserError("passwords_dont_match"); } } -- cgit v1.2.3-24-g4f1b