From ea288ed83837bcaf4d401e0e174b783ed319321a Mon Sep 17 00:00:00 2001 From: Tracker-Friendly Date: Mon, 20 Nov 2023 01:05:00 +0000 Subject: [PATCH] Updated login --- account/account.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/account/account.py b/account/account.py index 9160083..f300823 100644 --- a/account/account.py +++ b/account/account.py @@ -36,7 +36,10 @@ def verify_bcrypt(passphrase, hashed_password): @app.route('/') def index(): - return render_template('index.html') + if 'passwordhash' in request.cookies and request.cookies.get('passwordhash'): + return redirect(url_for('dashboard')) + else: + return render_template('index.html') @app.route('/loginapi', methods=['POST']) def login():