MT#4707 log IP on failed login

agranig/rest
Gerhard Jungwirth 12 years ago committed by Andreas Granig
parent 1be3912002
commit 3279897a1b

@ -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