From e5b8e9161f3d2552749fd19355b6a621cce441c6 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Wed, 24 Oct 2018 10:09:51 +0200 Subject: Fixed a bug when an administrator wanted to edit a user. --- src/web/views/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/views/admin.py b/src/web/views/admin.py index 07c4f974..2e97ff36 100644 --- a/src/web/views/admin.py +++ b/src/web/views/admin.py @@ -61,7 +61,7 @@ def process_user_form(user_id=None): # Edit a user user_contr.update({'id': user_id}, {'nickname': form.nickname.data, - 'password': form.password.data, + 'pwdhash': generate_password_hash(form.password.data), 'automatic_crawling': form.automatic_crawling.data}) user = user_contr.get(id=user_id) flash(gettext('User %(nick)s successfully updated', -- cgit