From a96417f2a5e0dade80638ecb2d70eb887f759d23 Mon Sep 17 00:00:00 2001 From: Cervinko Cera Date: Sun, 3 Apr 2016 15:12:48 +0200 Subject: [PATCH] fix for password edit at the admin page --- cps/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/web.py b/cps/web.py index 5b459608..7712535b 100755 --- a/cps/web.py +++ b/cps/web.py @@ -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: