mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 02:50:02 -03:30
fix bug with failed login log
This commit is contained in:
parent
2afdf35375
commit
60ea0bdf92
@ -603,7 +603,7 @@ class AuthTokenView(APIView):
|
||||
return Response({'token': token.key, 'expires': token.expires}, headers=headers)
|
||||
if 'username' in request.data:
|
||||
logger.warning(smart_text(u"Login failed for user {}".format(request.data['username'])),
|
||||
user=dict(actor=request.data['username']))
|
||||
extra=dict(actor=request.data['username']))
|
||||
return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user