1
0
Fork 0

CAS: enhance log

This commit is contained in:
Emmanuel Viennet 2023-02-26 21:40:15 +01:00
parent 5b8b474d5c
commit cba81a7742
1 changed files with 5 additions and 0 deletions

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")