Fix: bug creation user si CAS non activé

This commit is contained in:
Emmanuel Viennet 2025-01-13 13:43:05 +01:00
parent 4d46d981ca
commit 388992961a

View File

@ -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: