mirror of
https://github.com/ansible/awx.git
synced 2024-10-28 10:55:30 +03:00
Merge branch 'release_3.1.1' into stable
* release_3.1.1: Filter on reason also when logging in via sso and picking authtoken
This commit is contained in:
commit
b6444d7b86
@ -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…
Reference in New Issue
Block a user