MT#4707 log IP on failed login

gjungwirth/fix_tests
Gerhard Jungwirth 12 years ago
parent 0d8f6d1355
commit 204fb95b3a

@ -114,6 +114,11 @@ sub index :Path Form {
# initial get
}
if ($form->has_errors) {
my $request_ip = $c->request->address;
$c->log->error("NGCP Panel Login failed realm=$realm ip=$request_ip");
}
$c->stash(form => $form);
$c->stash(realm => $realm);
$c->stash(template => 'login/login.tt');

Loading…
Cancel
Save