mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 18:40:01 -03:30
Add action to output login failure to logger
Signed-off-by: Hideki Saito <saito@fgrep.org>
This commit is contained in:
parent
1ece764547
commit
ef3b1ee195
@ -100,6 +100,8 @@ class LoggedLoginView(auth_views.LoginView):
|
||||
|
||||
return ret
|
||||
else:
|
||||
if 'username' in self.request.POST:
|
||||
logger.warn(smart_text(u"Login failed for user {}".format(self.request.POST.get('username'))))
|
||||
ret.status_code = 401
|
||||
return ret
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user