1
0
forked from ScoDoc/ScoDoc

CAS: enhance log

This commit is contained in:
Emmanuel Viennet 2023-02-26 21:40:15 +01:00
parent 5b8b474d5c
commit cba81a7742

View File

@ -42,6 +42,11 @@ def after_cas_login():
current_app.logger.info(
f"""CAS login denied for {user.user_name if user else ""} cas_id={cas_id} (unknown or inactive)"""
)
else:
current_app.logger.info(
f"""CAS attribute '{ScoDocSiteConfig.get("cas_attribute_id")}' not found !
(check your ScoDoc config)"""
)
# Echec:
flash("échec de l'authentification")