Updated login
This commit is contained in:
parent
ea288ed838
commit
8cef8c88fb
|
@ -37,7 +37,7 @@ 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'))
|
||||
return redirect("/account/dashboard")
|
||||
else:
|
||||
return render_template('index.html')
|
||||
|
||||
|
@ -95,7 +95,7 @@ def dashboard():
|
|||
if 'passwordhash' in request.cookies and request.cookies.get('passwordhash'):
|
||||
return render_template('dashboard.html')
|
||||
else:
|
||||
return redirect(url_for('index'))
|
||||
return redirect("/account")
|
||||
|
||||
@app.route('/deleteacct')
|
||||
def deleteacct():
|
||||
|
|
Loading…
Reference in New Issue