Updated login
This commit is contained in:
parent
ea15830789
commit
47f11a334e
|
@ -66,7 +66,7 @@ def dashboard():
|
||||||
@app.route('/deleteacct')
|
@app.route('/deleteacct')
|
||||||
def deleteacct():
|
def deleteacct():
|
||||||
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', user_email=request.cookies.get('email'), password_hash=request.cookies.get('passwordhash'))
|
return render_template('confirm.html', user_email=request.cookies.get('email'), password_hash=request.cookies.get('passwordhash'))
|
||||||
else:
|
else:
|
||||||
return redirect(url_for('index'))
|
return redirect(url_for('index'))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue