##// END OF EJS Templates
auth-token: only delete token if it exists.
marcink -
r1839:b52a5a91 default
parent child Browse files
Show More
@@ -71,6 +71,8 b' class AuthTokenModel(BaseModel):'
71 71 user = self._get_user(user)
72 72 auth_token = auth_token.filter(UserApiKeys.user_id == user.user_id)
73 73 auth_token = auth_token.scalar()
74
75 if auth_token:
74 76 try:
75 77 Session().delete(auth_token)
76 78 except Exception:
General Comments 0
You need to be logged in to leave comments. Login now