Commit 93477a7a authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 1001497: User.login incorrectly returns id = 0 when the login or password is missing

r=dkl a=justdave
parent 2033e6b1
......@@ -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 };
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment