diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2019-02-04 11:21:12 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2019-02-04 11:21:12 +0100 |
commit | b61531dc193e4b27ad9684a8ea97d3368aaeb245 (patch) | |
tree | f59078202d1e439c888af5b9d7471bdd8d6889d9 | |
parent | Updated Python runtime for Heroku (diff) | |
download | newspipe-b61531dc193e4b27ad9684a8ea97d3368aaeb245.tar.gz newspipe-b61531dc193e4b27ad9684a8ea97d3368aaeb245.tar.bz2 newspipe-b61531dc193e4b27ad9684a8ea97d3368aaeb245.zip |
fix: Entity User has no property 'password', changed to 'pwdhash'.
-rw-r--r-- | src/web/views/user.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/web/views/user.py b/src/web/views/user.py index 24b73a60..7b3c1684 100644 --- a/src/web/views/user.py +++ b/src/web/views/user.py @@ -6,6 +6,7 @@ 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 @@ -152,7 +153,7 @@ def profile(): try: user_contr.update({'id': current_user.id}, {'nickname': form.nickname.data, - 'password': form.password.data, + 'pwdhash': generate_password_hash(form.password.data), 'automatic_crawling': form.automatic_crawling.data, 'is_public_profile': form.is_public_profile.data, 'bio': form.bio.data, |