# Hotfix #458

Merged
mpeltriaux merged 1 commits from oauth_fix into master 2024-12-23 13:41:57 +01:00

View File

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