Skip to content
Snippets Groups Projects
Commit f5d070d0 authored by Emmanuel Viennet's avatar Emmanuel Viennet
Browse files

CAS: si activé et forcé et cas_id renseigné et cas_allow_login, on ne peut pas...

CAS: si activé et forcé et cas_id renseigné et cas_allow_login, on ne peut pas se logguer (ajout condition cas_allow_login)
parent 50d2c91a
No related branches found
No related tags found
No related merge requests found
......@@ -222,7 +222,11 @@ class User(UserMixin, ScoDocModel):
)
return False
# si CAS activé et forcé et cas_id renseigné, on ne peut pas se logguer
if self.cas_id and ScoDocSiteConfig.get("cas_force"):
if (
self.cas_id
and self.cas_allow_login
and ScoDocSiteConfig.get("cas_force")
):
log(
f"""auth: login attempt for user {self.user_name
} (cas_id='{
......
......@@ -3,7 +3,7 @@
"Infos sur version ScoDoc"
SCOVERSION = "9.7.42"
SCOVERSION = "9.7.43"
SCONAME = "ScoDoc"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment