From b5ae6badff13e5ae8848a05af16186890ddc4191 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Wed, 29 Jul 2015 14:38:13 +0800 Subject: Bug 1188747 - account lockout audit entry is less than useful --- Bugzilla/Auth.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Bugzilla/Auth.pm') 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); -- cgit v1.2.3-24-g4f1b