Updated login
This commit is contained in:
parent
ea288ed838
commit
8cef8c88fb
|
@ -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():
|
||||||
|
|
Loading…
Reference in New Issue