Updated login
This commit is contained in:
parent
f9baab3314
commit
aa63d80cbb
|
@ -100,6 +100,7 @@ def deleteacct():
|
||||||
return redirect(url_for('index'))
|
return redirect(url_for('index'))
|
||||||
|
|
||||||
@app.route('/logout')
|
@app.route('/logout')
|
||||||
|
def logout():
|
||||||
response = make_response(redirect('/'))
|
response = make_response(redirect('/'))
|
||||||
response.set_cookie('passwordhash', '', expires=0)
|
response.set_cookie('passwordhash', '', expires=0)
|
||||||
response.set_cookie('email', '', expires=0)
|
response.set_cookie('email', '', expires=0)
|
||||||
|
|
Loading…
Reference in New Issue