forked from orbit-oss/flask
commit
1a19ddc55c
1 changed files with 1 additions and 1 deletions
|
|
@ -744,7 +744,7 @@ sessions work::
|
||||||
|
|
||||||
@app.route('/logout')
|
@app.route('/logout')
|
||||||
def logout():
|
def logout():
|
||||||
# remove the username from the session if its there
|
# remove the username from the session if it's there
|
||||||
session.pop('username', None)
|
session.pop('username', None)
|
||||||
return redirect(url_for('index'))
|
return redirect(url_for('index'))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue