diff options
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Auth.pm | 2 | ||||
-rw-r--r-- | Bugzilla/WebService/Constants.pm | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/Auth.pm b/Bugzilla/Auth.pm index c46e554a3..4e766cf0b 100644 --- a/Bugzilla/Auth.pm +++ b/Bugzilla/Auth.pm @@ -178,7 +178,7 @@ sub _handle_login_result { elsif ($fail_code == AUTH_LOGINFAILED or $fail_code == AUTH_NO_SUCH_USER) { my $remaining_attempts = MAX_LOGIN_ATTEMPTS - ($result->{failure_count} || 0); - ThrowUserError("invalid_username_or_password", + ThrowUserError("invalid_login_or_password", { remaining => $remaining_attempts }); } # The account may be disabled diff --git a/Bugzilla/WebService/Constants.pm b/Bugzilla/WebService/Constants.pm index e4325d9d3..1c3929e53 100644 --- a/Bugzilla/WebService/Constants.pm +++ b/Bugzilla/WebService/Constants.pm @@ -123,7 +123,7 @@ use constant WS_ERROR_CODE => { illegal_bug_status_transition => 123, # Authentication errors are usually 300-400. - invalid_username_or_password => 300, + invalid_login_or_password => 300, account_disabled => 301, auth_invalid_email => 302, extern_id_conflict => -303, |