summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Auth
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2014-04-25 22:18:01 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2014-04-25 22:18:01 +0200
commit93477a7adfc3fbba7dd2a3e353f23ef2c8520fa8 (patch)
tree623c5f54fbca41329b8d29921139240469add93a /Bugzilla/Auth
parent2033e6b1c37a024dabad4b0e8533db8d87f248b3 (diff)
downloadbugzilla-93477a7adfc3fbba7dd2a3e353f23ef2c8520fa8.tar.gz
bugzilla-93477a7adfc3fbba7dd2a3e353f23ef2c8520fa8.tar.xz
Bug 1001497: User.login incorrectly returns id = 0 when the login or password is missing
r=dkl a=justdave
Diffstat (limited to 'Bugzilla/Auth')
-rw-r--r--Bugzilla/Auth/Login/CGI.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Auth/Login/CGI.pm b/Bugzilla/Auth/Login/CGI.pm
index f9e3bbf18..76b82804a 100644
--- a/Bugzilla/Auth/Login/CGI.pm
+++ b/Bugzilla/Auth/Login/CGI.pm
@@ -58,7 +58,7 @@ sub get_login_info {
ThrowUserError('auth_untrusted_request', { login => $login });
}
- if (!$login || !$password || !$valid) {
+ if (!defined($login) || !defined($password) || !$valid) {
return { failure => AUTH_NODATA };
}