Compare commits

..

No commits in common. "335800c44b9bc73d62f6e6895c8a7c6796790cd7" and "5766cfde47ccde6de5c63ecacba17387040f79cf" have entirely different histories.

View File

@ -25,12 +25,9 @@ class LogoutView(View):
A redirect
"""
user = request.user
try:
oauth_token = user.oauth_token
if oauth_token:
oauth_token.revoke()
except AttributeError:
pass
oauth_token = user.oauth_token
if oauth_token:
oauth_token.revoke()
logout(request)
return redirect(SSO_SERVER_BASE)