mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
api: fix authentication failure not deleting expired cookies
This commit is contained in:
parent
328107c946
commit
a6c7e55d1d
1 changed files with 1 additions and 0 deletions
|
@ -387,6 +387,7 @@ class _ActionsMapPlugin:
|
||||||
try:
|
try:
|
||||||
session_infos = authenticator.get_session_cookie()
|
session_infos = authenticator.get_session_cookie()
|
||||||
except Exception:
|
except Exception:
|
||||||
|
authenticator.delete_session_cookie()
|
||||||
msg = m18n.g("authentication_required")
|
msg = m18n.g("authentication_required")
|
||||||
raise HTTPResponse(msg, 401)
|
raise HTTPResponse(msg, 401)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue