Updated login

This commit is contained in:
Tracker-Friendly 2023-11-20 01:06:38 +00:00
parent ea288ed838
commit 8cef8c88fb
1 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ def verify_bcrypt(passphrase, hashed_password):
@app.route('/') @app.route('/')
def index(): def index():
if 'passwordhash' in request.cookies and request.cookies.get('passwordhash'): if 'passwordhash' in request.cookies and request.cookies.get('passwordhash'):
return redirect(url_for('dashboard')) return redirect("/account/dashboard")
else: else:
return render_template('index.html') return render_template('index.html')
@ -95,7 +95,7 @@ def dashboard():
if 'passwordhash' in request.cookies and request.cookies.get('passwordhash'): if 'passwordhash' in request.cookies and request.cookies.get('passwordhash'):
return render_template('dashboard.html') return render_template('dashboard.html')
else: else:
return redirect(url_for('index')) return redirect("/account")
@app.route('/deleteacct') @app.route('/deleteacct')
def deleteacct(): def deleteacct():