summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Auth.pm2
-rw-r--r--Bugzilla/Auth/Verify/DB.pm4
2 files changed, 3 insertions, 3 deletions
diff --git a/Bugzilla/Auth.pm b/Bugzilla/Auth.pm
index f289a4ba1..e3f838b39 100644
--- a/Bugzilla/Auth.pm
+++ b/Bugzilla/Auth.pm
@@ -152,7 +152,7 @@ sub _handle_login_result {
}
elsif ($fail_code == AUTH_ERROR) {
if ($result->{user_error}) {
- ThrowUserError($result->{error}, $result->{details});
+ ThrowUserError($result->{user_error}, $result->{details});
}
else {
ThrowCodeError($result->{error}, $result->{details});
diff --git a/Bugzilla/Auth/Verify/DB.pm b/Bugzilla/Auth/Verify/DB.pm
index c562d1353..2fcfd4017 100644
--- a/Bugzilla/Auth/Verify/DB.pm
+++ b/Bugzilla/Auth/Verify/DB.pm
@@ -76,8 +76,8 @@ sub check_credentials {
# Force the user to type a longer password if it's too short.
if (length($password) < USER_PASSWORD_MIN_LENGTH) {
- return { failure => AUTH_ERROR, error => 'password_current_too_short',
- user_error => 1, details => { locked_user => $user } };
+ return { failure => AUTH_ERROR, user_error => 'password_current_too_short',
+ details => { locked_user => $user } };
}
# The user's credentials are okay, so delete any outstanding