Updated login

This commit is contained in:
Tracker-Friendly 2023-11-20 01:05:00 +00:00
parent ac16bc8bf1
commit ea288ed838
1 changed files with 4 additions and 1 deletions

View File

@ -36,6 +36,9 @@ def verify_bcrypt(passphrase, hashed_password):
@app.route('/')
def index():
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'])