aboutsummaryrefslogtreecommitdiff
path: root/src/web/views/user.py
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/views/user.py
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/views/user.py')
-rw-r--r--src/web/views/user.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/web/views/user.py b/src/web/views/user.py
index 7b3c1684..24b73a60 100644
--- a/src/web/views/user.py
+++ b/src/web/views/user.py
@@ -6,7 +6,6 @@ from flask import (Blueprint, g, render_template, redirect,
from flask_babel import gettext
from flask_login import login_required, current_user
from flask_paginate import Pagination, get_page_args
-from werkzeug import generate_password_hash
import conf
from notifications import notifications
@@ -153,7 +152,7 @@ def profile():
try:
user_contr.update({'id': current_user.id},
{'nickname': form.nickname.data,
- 'pwdhash': generate_password_hash(form.password.data),
+ 'password': form.password.data,
'automatic_crawling': form.automatic_crawling.data,
'is_public_profile': form.is_public_profile.data,
'bio': form.bio.data,
bgstack15