From 4d92e3462aaaeebe9a165b7cd4470629bb294cd1 Mon Sep 17 00:00:00 2001 From: Valentina_pro <33911680+Drc-DEV@users.noreply.github.com> Date: Tue, 2 Feb 2021 18:11:17 +0100 Subject: [PATCH] Fix #2 https://github.com/techwithtim/Flask-Web-App-Tutorial/issues/2 --- website/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/auth.py b/website/auth.py index da2d8b86..72666d9d 100644 --- a/website/auth.py +++ b/website/auth.py @@ -59,7 +59,7 @@ def sign_up(): password1, method='sha256')) db.session.add(new_user) db.session.commit() - login_user(user, remember=True) + login_user(new_user, remember=True) flash('Account created!', category='success') return redirect(url_for('views.home'))