api: fix authentication failure not deleting expired cookies

This commit is contained in:
Alexandre Aubin 2023-07-29 19:10:47 +02:00
parent 328107c946
commit a6c7e55d1d

View file

@ -387,6 +387,7 @@ class _ActionsMapPlugin:
try:
session_infos = authenticator.get_session_cookie()
except Exception:
authenticator.delete_session_cookie()
msg = m18n.g("authentication_required")
raise HTTPResponse(msg, 401)