Skip to content

Commit

Permalink
api: fix authentication failure not deleting expired cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
alexAubin committed Jul 29, 2023
1 parent 328107c commit a6c7e55
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions moulinette/interfaces/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@ def authenticate(self, authenticator):
try:
session_infos = authenticator.get_session_cookie()
except Exception:
authenticator.delete_session_cookie()
msg = m18n.g("authentication_required")
raise HTTPResponse(msg, 401)

Expand Down

0 comments on commit a6c7e55

Please sign in to comment.