mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Not sure when that started to happen, but bottle will return an empty dict if no valid session cookie found, this shall trigger an exception
This commit is contained in:
parent
f49f03d11e
commit
6aaf47493d
1 changed files with 3 additions and 0 deletions
|
@ -109,6 +109,9 @@ class Authenticator(BaseAuthenticator):
|
|||
return {"id": random_ascii()}
|
||||
raise YunohostAuthenticationError("unable_authenticate")
|
||||
|
||||
if not infos and raise_if_no_session_exists:
|
||||
raise YunohostAuthenticationError("unable_authenticate")
|
||||
|
||||
if "id" not in infos:
|
||||
infos["id"] = random_ascii()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue