forked from ScoDoc/ScoDoc
Fix user edit dialog
This commit is contained in:
parent
cdb0cf99ed
commit
b449546918
@ -234,7 +234,9 @@ def create_user_form(user_name=None, edit=0, all_roles=True):
|
|||||||
H.append(f"<h2>Modification de l'utilisateur {user_name}</h2>")
|
H.append(f"<h2>Modification de l'utilisateur {user_name}</h2>")
|
||||||
submitlabel = "Modifier utilisateur"
|
submitlabel = "Modifier utilisateur"
|
||||||
if "roles_string" in initvalues:
|
if "roles_string" in initvalues:
|
||||||
initvalues["roles"] = initvalues["roles_string"].split(",")
|
initvalues["roles"] = [
|
||||||
|
r.strip() for r in initvalues["roles_string"].split(",")
|
||||||
|
]
|
||||||
else:
|
else:
|
||||||
initvalues["roles"] = []
|
initvalues["roles"] = []
|
||||||
if "date_expiration" in initvalues:
|
if "date_expiration" in initvalues:
|
||||||
|
@ -107,7 +107,7 @@ def validate(ticket):
|
|||||||
Will attempt to validate the ticket. If validation fails, then False
|
Will attempt to validate the ticket. If validation fails, then False
|
||||||
is returned. If validation is successful, then True is returned
|
is returned. If validation is successful, then True is returned
|
||||||
and the validated username is saved in the session under the
|
and the validated username is saved in the session under the
|
||||||
key `CAS_USERNAME_SESSION_KEY` while tha validated attributes dictionary
|
key `CAS_USERNAME_SESSION_KEY` while the validated attributes dictionary
|
||||||
is saved under the key 'CAS_ATTRIBUTES_SESSION_KEY'.
|
is saved under the key 'CAS_ATTRIBUTES_SESSION_KEY'.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# -*- mode: python -*-
|
# -*- mode: python -*-
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
SCOVERSION = "9.4.53"
|
SCOVERSION = "9.4.54"
|
||||||
|
|
||||||
SCONAME = "ScoDoc"
|
SCONAME = "ScoDoc"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user