forked from ScoDoc/ScoDoc
CAS: si activé et forcé et cas_id renseigné et cas_allow_login, on ne peut pas se logguer (ajout condition cas_allow_login)
This commit is contained in:
parent
50d2c91a54
commit
f5d070d071
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user