Skip to content

Commit

Permalink
fix: [create user] fix template error if an invalid password is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
Terrtia committed Jan 31, 2025
1 parent ee5a619 commit 8a9a4cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions var/www/blueprints/settings_b.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 8a9a4cb

Please sign in to comment.