mirror of
https://github.com/ail-project/ail-framework.git
synced 2025-02-14 13:26:24 +00:00
fix: [create user] fix template error if an invalid password is provided
This commit is contained in:
parent
ee5a6197f4
commit
8a9a4cb290
1 changed files with 2 additions and 2 deletions
|
@ -299,9 +299,9 @@ def create_user_post():
|
|||
if ail_users.check_password_strength(password1):
|
||||
password = password1
|
||||
else:
|
||||
return render_template("create_user.html", all_roles=all_roles, error="Incorrect Password", acl_admin=True)
|
||||
return render_template("create_user.html", all_roles=all_roles, error="Incorrect Password", acl_admin=True, meta={})
|
||||
else:
|
||||
return render_template("create_user.html", all_roles=all_roles, error="Passwords don't match", acl_admin=True)
|
||||
return render_template("create_user.html", all_roles=all_roles, error="Passwords don't match", acl_admin=True, meta={})
|
||||
# generate password
|
||||
else:
|
||||
password = ail_users.gen_password()
|
||||
|
|
Loading…
Add table
Reference in a new issue