aboutsummaryrefslogtreecommitdiff
path: root/src/web/views
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2018-10-24 10:09:51 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2018-10-24 10:09:51 +0200
commite5b8e9161f3d2552749fd19355b6a621cce441c6 (patch)
treef867793e5b31974dc1bf5427fa9e212b146b1f86 /src/web/views
parentUpdated some links (diff)
downloadnewspipe-e5b8e9161f3d2552749fd19355b6a621cce441c6.tar.gz
newspipe-e5b8e9161f3d2552749fd19355b6a621cce441c6.tar.bz2
newspipe-e5b8e9161f3d2552749fd19355b6a621cce441c6.zip
Fixed a bug when an administrator wanted to edit a user.
Diffstat (limited to 'src/web/views')
-rw-r--r--src/web/views/admin.py2
1 files changed, 1 insertions, 1 deletions
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',
bgstack15