Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
6 changes: 3 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down