From b61531dc193e4b27ad9684a8ea97d3368aaeb245 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Mon, 4 Feb 2019 11:21:12 +0100 Subject: fix: Entity User has no property 'password', changed to 'pwdhash'. --- src/web/views/user.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/web/views') 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, -- cgit