From 8a9a4cb29026902bce6798fbcd3879728d55ac58 Mon Sep 17 00:00:00 2001 From: terrtia Date: Fri, 31 Jan 2025 09:04:53 +0100 Subject: [PATCH] fix: [create user] fix template error if an invalid password is provided --- var/www/blueprints/settings_b.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/var/www/blueprints/settings_b.py b/var/www/blueprints/settings_b.py index 3e269c74..04376345 100644 --- a/var/www/blueprints/settings_b.py +++ b/var/www/blueprints/settings_b.py @@ -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()