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

Fix: bug creation user si CAS non activé

parent 4d46d981
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment