summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-07-29 08:38:13 +0200
committerByron Jones <glob@mozilla.com>2015-07-29 08:38:13 +0200
commitb5ae6badff13e5ae8848a05af16186890ddc4191 (patch)
tree3e664fe5e9935608788111d5b774a8c015e0edd6 /Bugzilla
parenta1e5e3d75fe61f4d271c08b96aafa550138b459c (diff)
downloadbugzilla-b5ae6badff13e5ae8848a05af16186890ddc4191.tar.gz
bugzilla-b5ae6badff13e5ae8848a05af16186890ddc4191.tar.xz
Bug 1188747 - account lockout audit entry is less than useful
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Auth.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/Bugzilla/Auth.pm b/Bugzilla/Auth.pm
index 81b972ac5..c502ffc35 100644
--- a/Bugzilla/Auth.pm
+++ b/Bugzilla/Auth.pm
@@ -243,7 +243,10 @@ sub _handle_login_result {
$template->process('email/lockout.txt.tmpl', $vars, \$message)
|| ThrowTemplateError($template->error);
MessageToMTA($message);
- Bugzilla->audit(sprintf('<%s> triggered lockout of %s after %s attempts', $address, $user, $attempts));
+ Bugzilla->audit(sprintf(
+ '<%s> triggered lockout of %s after %s attempts',
+ $address, $user->login, scalar(@$attempts)
+ ));
}
$unlock_at->set_time_zone($user->timezone);