aboutsummaryrefslogtreecommitdiff
path: root/src/web/controllers
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2019-02-04 11:46:31 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2019-02-04 11:46:31 +0100
commit4d2d4a59e4711c12bb756c2f7f446f3c63302a2f (patch)
tree10b8ec23a9fbb3af98a93b8d35c9ae53235261b6 /src/web/controllers
parentadded a command to add new admin user via command line (diff)
downloadnewspipe-4d2d4a59e4711c12bb756c2f7f446f3c63302a2f.tar.gz
newspipe-4d2d4a59e4711c12bb756c2f7f446f3c63302a2f.tar.bz2
newspipe-4d2d4a59e4711c12bb756c2f7f446f3c63302a2f.zip
fix: edition of user's password was broken
Diffstat (limited to 'src/web/controllers')
-rw-r--r--src/web/controllers/user.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/web/controllers/user.py b/src/web/controllers/user.py
index 1b5c123e..65e01e6f 100644
--- a/src/web/controllers/user.py
+++ b/src/web/controllers/user.py
@@ -12,7 +12,7 @@ class UserController(AbstractController):
def _handle_password(self, attrs):
if attrs.get('password'):
- attrs['password'] = generate_password_hash(attrs.pop('password'))
+ attrs['pwdhash'] = generate_password_hash(attrs.pop('password'))
elif 'password' in attrs:
del attrs['password']
bgstack15