From e89f9101c2e394530b16835a9ca45552a5f38ba8 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Thu, 7 Apr 2016 10:34:23 +0200 Subject: Bug fix. --- src/web/views/session_mgmt.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/web') diff --git a/src/web/views/session_mgmt.py b/src/web/views/session_mgmt.py index 06d31ed2..5e67513a 100644 --- a/src/web/views/session_mgmt.py +++ b/src/web/views/session_mgmt.py @@ -1,6 +1,7 @@ import json import logging +from werkzeug import generate_password_hash from werkzeug.exceptions import NotFound from flask import (render_template, flash, session, request, url_for, redirect, current_app) @@ -85,7 +86,8 @@ def signup(): form = SignupForm() if form.validate_on_submit(): user = UserController().create(nickname=form.nickname.data, - email=form.email.data, password=form.password.data) + email=form.email.data, + pwdhash=generate_password_hash(form.password.data)) login_user_bundle(user) return redirect(url_for('home')) -- cgit