From c227166b700531b18ce2caaeeb54e7b64f17f02a Mon Sep 17 00:00:00 2001 From: hulkingopossum Date: Tue, 26 Nov 2024 23:50:15 +0000 Subject: [PATCH] Uncommented Commented code so that the routing issue on the sign in button is fixed. Users should be able to sign in, so that they can keep items in their carts when they leave the website --- main.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 67fb91b..1f656e8 100644 --- a/main.py +++ b/main.py @@ -176,10 +176,11 @@ def update_profile(): @app.route("/loginForm") def login_form(): # Uncomment to enable logging in and registration - #if 'email' in session: + # Uncommented by Zoe + if 'email' in session: return redirect(url_for('root')) - #else: - # return render_template('login.html', error='') + else: + return render_template('login.html', error='') @app.route("/login", methods = ['POST', 'GET']) def login():