Commit a96417f2 authored by Cervinko Cera's avatar Cervinko Cera

fix for password edit at the admin page

parent a395e9f3
......@@ -637,7 +637,7 @@ def edit_user(user_id):
return redirect(url_for('user_list'))
else:
if to_save["password"]:
content.password == generate_password_hash(to_save["password"])
content.password = generate_password_hash(to_save["password"])
if "admin_user" in to_save and content.role != 1:
content.role = 1
elif not "admin_user" in to_save and content.role == 1:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment