forked from ScoDoc/ScoDoc
CAS: enhance log
This commit is contained in:
parent
363de7be76
commit
935ae99e03
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user