mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 19:30:39 -03:30
Filter on reason also when logging in via sso and picking authtoken
This commit is contained in:
parent
90a26de180
commit
2c7dd8497b
@ -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)))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user