From f6b9523fe08584a2d553f2049034d310e50dd2ec Mon Sep 17 00:00:00 2001 From: ukranian357 <116136636+ukranian357@users.noreply.github.com> Date: Tue, 22 Nov 2022 18:22:13 -0800 Subject: [PATCH 1/2] logging in issue solved for customer code on lines 179-182 has been fixed for the customer all runs as it should now. no bugs reported --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 67fb91b..fc9203a 100644 --- a/main.py +++ b/main.py @@ -176,10 +176,10 @@ def update_profile(): @app.route("/loginForm") def login_form(): # Uncomment to enable logging in and registration - #if 'email' in session: + 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(): From d449dea22ef6f175fbaf43e4603bce947c4ffc68 Mon Sep 17 00:00:00 2001 From: ukranian357 <116136636+ukranian357@users.noreply.github.com> Date: Tue, 22 Nov 2022 19:21:38 -0800 Subject: [PATCH 2/2] demo test demo to do pull request --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e9df433..db87973 100644 --- a/README.md +++ b/README.md @@ -14,5 +14,5 @@ The code requires Python and Flask to run at minimum. Pycharm IDE is recommended 1. Start the server by running main.py 2. Navigate to [localhost:5000](http://localhost:5000) or [127.0.0.1:5000](http://127.0.0.1:5000) in your web browser -## Thanks +## Thanks ### Thanks to [Zak](https://github.com/RTCedu) for supplying the initial code.