CAS: enhance log

This commit is contained in:
Emmanuel Viennet 2023-02-26 21:40:15 +01:00 committed by iziram
parent 363de7be76
commit 935ae99e03

View File

@ -42,6 +42,11 @@ def after_cas_login():
current_app.logger.info( current_app.logger.info(
f"""CAS login denied for {user.user_name if user else ""} cas_id={cas_id} (unknown or inactive)""" 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: # Echec:
flash("échec de l'authentification") flash("échec de l'authentification")