portalapi: fix portal_user_intro not being sent when authenticated, hence not displayed at all

This commit is contained in:
Alexandre Aubin 2024-08-05 22:07:56 +02:00
parent bc93a2e079
commit cdf443c86e

View file

@ -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():