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. 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():