diff --git a/awx/api/generics.py b/awx/api/generics.py index 17f76d6302..818175f2fb 100644 --- a/awx/api/generics.py +++ b/awx/api/generics.py @@ -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