1
0
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:
Matthew Jones 2017-03-07 15:58:28 -05:00
commit b6444d7b86

View File

@ -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)))