Revert "Merge pull request #39 from wwitzel3/issue-7260"

This reverts commit 6cd0592781, reversing
changes made to 943a40eb40.
This commit is contained in:
Wayne Witzel III
2017-07-27 11:32:09 -04:00
parent c3f2a8a140
commit 5d167cafa2
3 changed files with 21 additions and 20 deletions

View File

@@ -60,7 +60,7 @@ class CompleteView(BaseRedirectView):
logger.info(smart_text(u"User {} logged in".format(self.request.user.username)))
request.session['auth_token_key'] = token.key
token_key = urllib.quote('"%s"' % token.key)
response.set_cookie('token', value=token_key, httponly=True)
response.set_cookie('token', token_key)
token_expires = token.expires.astimezone(utc).strftime('%Y-%m-%dT%H:%M:%S')
token_expires = '%s.%03dZ' % (token_expires, token.expires.microsecond / 1000)
token_expires = urllib.quote('"%s"' % token_expires)