mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
portalapi: fix portal_user_intro not being sent when authenticated, hence not displayed at all
This commit is contained in:
parent
bc93a2e079
commit
cdf443c86e
1 changed files with 5 additions and 2 deletions
|
@ -118,8 +118,11 @@ def portal_public():
|
||||||
|
|
||||||
portal_settings = _get_portal_settings()
|
portal_settings = _get_portal_settings()
|
||||||
|
|
||||||
if "portal_user_intro" in portal_settings:
|
try:
|
||||||
del portal_settings["portal_user_intro"]
|
Auth().get_session_cookie()
|
||||||
|
except Exception:
|
||||||
|
if "portal_user_intro" in portal_settings:
|
||||||
|
del portal_settings["portal_user_intro"]
|
||||||
|
|
||||||
# Prevent leaking the list of users
|
# Prevent leaking the list of users
|
||||||
for infos in portal_settings["apps"].values():
|
for infos in portal_settings["apps"].values():
|
||||||
|
|
Loading…
Add table
Reference in a new issue