forked from ScoDoc/ScoDoc
Fix: bug creation user si CAS non activé
This commit is contained in:
parent
4d46d981ca
commit
388992961a
@ -416,7 +416,7 @@ class User(UserMixin, ScoDocModel):
|
||||
args, excluded={"cas_id", "user_name", "roles_string", "roles"}
|
||||
)
|
||||
|
||||
new_cas_id = args.get("cas_id")
|
||||
new_cas_id = args.get("cas_id", "").strip() or None
|
||||
if ScoDocSiteConfig.cas_uid_use_scodoc():
|
||||
new_cas_id = self.user_name
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user