Skip to content

Commit

Permalink
Adjusted logout route used in testing
Browse files Browse the repository at this point in the history
  • Loading branch information
CheeseCake87 committed Sep 20, 2023
1 parent f1ed994 commit bccd567
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/blueprints/tests/routes/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ def login_int():

@bp.route("/logout", methods=["GET"])
def logout():
del session["logged_in"]
if session.get("logged_in"):
del session["logged_in"]
return render_template(bp.tmpl("security.html"), logged_in=False)


Expand Down

0 comments on commit bccd567

Please sign in to comment.