summaryrefslogtreecommitdiffstats
path: root/globals.pl
diff options
context:
space:
mode:
authorjocuri%softhome.net <>2004-03-03 14:19:28 +0100
committerjocuri%softhome.net <>2004-03-03 14:19:28 +0100
commit261e207c1170cf374467cc422bd76a861110b8ab (patch)
treeebaf971d5f25d9eee6a47fee6852dad034477939 /globals.pl
parent82303e4a4573a36f43824b96f67785e178563ea5 (diff)
downloadbugzilla-261e207c1170cf374467cc422bd76a861110b8ab.tar.gz
bugzilla-261e207c1170cf374467cc422bd76a861110b8ab.tar.xz
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.
Diffstat (limited to 'globals.pl')
-rw-r--r--globals.pl2
1 files changed, 1 insertions, 1 deletions
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");
}
}