mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 15:21:13 +03:00
Merge pull request #3452 from wenottingham/where-did-you-come-from
Add originating address for the failed login message Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
commit
68d7532d01
@ -101,7 +101,7 @@ 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'))))
|
||||
logger.warn(smart_text(u"Login failed for user {} from {}".format(self.request.POST.get('username'),request.META.get('REMOTE_ADDR', None))))
|
||||
ret.status_code = 401
|
||||
return ret
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user