mirror of
https://github.com/ansible/awx.git
synced 2026-03-03 09:48:51 -03:30
Filter on reason also when logging in via sso and picking authtoken
This commit is contained in:
@@ -50,6 +50,7 @@ class CompleteView(BaseRedirectView):
|
||||
try:
|
||||
token = AuthToken.objects.filter(user=request.user,
|
||||
request_hash=request_hash,
|
||||
reason='',
|
||||
expires__gt=now())[0]
|
||||
token.refresh()
|
||||
logger.info(smart_text(u"User {} logged in".format(self.request.user.username)))
|
||||
|
||||
Reference in New Issue
Block a user