Skip to content

Commit

Permalink
simplify logout
Browse files Browse the repository at this point in the history
  • Loading branch information
ProgramminCat committed Sep 29, 2024
1 parent 4c21895 commit 360605e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -717,9 +717,6 @@ def login_page():
@app.route('/logout')
def logout():
session.clear()
session.pop('username', None)
session.pop('id', None)
session.pop('user', None)
return app.make_response(redirect(url_for("login_page")))

@app.route('/register', methods =['GET', 'POST'])
Expand Down

0 comments on commit 360605e

Please sign in to comment.