# OAuth Token removal
* adds deletion of oauth token stored on konova db on user logout
This commit is contained in:
@@ -29,6 +29,7 @@ class LogoutView(View):
|
|||||||
oauth_token = user.oauth_token
|
oauth_token = user.oauth_token
|
||||||
if oauth_token:
|
if oauth_token:
|
||||||
oauth_token.revoke()
|
oauth_token.revoke()
|
||||||
|
oauth_token.delete()
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user