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