From 914c20bcfedf3e5331df98b7270e53b588e84d87 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Sat, 11 Sep 2021 22:46:37 +0200 Subject: [PATCH] fix typo creation users --- app/views/users.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/views/users.py b/app/views/users.py index 557fbfb66..c246d5004 100644 --- a/app/views/users.py +++ b/app/views/users.py @@ -209,7 +209,7 @@ def create_user_form(REQUEST, user_name=None, edit=0): }, ), ( - "passwd", + "password", { "title": "Mot de passe", "input_type": "password", @@ -219,7 +219,7 @@ def create_user_form(REQUEST, user_name=None, edit=0): }, ), ( - "passwd2", + "password2", { "title": "Confirmer mot de passe", "input_type": "password", @@ -392,11 +392,11 @@ def create_user_form(REQUEST, user_name=None, edit=0): return "\n".join(H) + "\n" + tf[1] + F - if edit: # modif utilisateur (mais pas passwd ni user_name !) + if edit: # modif utilisateur (mais pas password ni user_name !) if (not can_choose_dept) and "dept" in vals: del vals["dept"] - if "passwd" in vals: - del vals["passwd"] + if "password" in vals: + del vals["passwordd"] if "date_modif_passwd" in vals: del vals["date_modif_passwd"] if "user_name" in vals: @@ -442,13 +442,13 @@ def create_user_form(REQUEST, user_name=None, edit=0): ) return "\n".join(H) + msg + "\n" + tf[1] + F # check passwords - if vals["passwd"]: - if vals["passwd"] != vals["passwd2"]: + if vals["password"]: + if vals["password"] != vals["password2"]: msg = tf_error_message( """Les deux mots de passes ne correspondent pas !""" ) return "\n".join(H) + msg + "\n" + tf[1] + F - if not sco_users.is_valid_password(vals["passwd"]): + if not sco_users.is_valid_password(vals["password"]): msg = tf_error_message( """Mot de passe trop simple, recommencez !""" )