Show More
@@ -71,11 +71,13 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 | try: | |
|
75 |
|
|
|
76 | except Exception: | |
|
77 | log.error(traceback.format_exc()) | |
|
78 | raise | |
|
74 | ||
|
75 | if auth_token: | |
|
76 | try: | |
|
77 | Session().delete(auth_token) | |
|
78 | except Exception: | |
|
79 | log.error(traceback.format_exc()) | |
|
80 | raise | |
|
79 | 81 | |
|
80 | 82 | def get_auth_tokens(self, user, show_expired=True): |
|
81 | 83 | user = self._get_user(user) |
General Comments 0
You need to be logged in to leave comments.
Login now