Skip to content

Commit

Permalink
Replaced individual session pop calls with a session.clear on logout
Browse files Browse the repository at this point in the history
  • Loading branch information
dhakim87 committed Jun 8, 2020
1 parent c88f2d8 commit f251d81
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions microsetta_private_api/example/client_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,7 @@ def authrocket_callback(token):


def logout():
if TOKEN_KEY_NAME in session:
# delete these keys if they are here, otherwise ignore
session.pop(TOKEN_KEY_NAME, None)
session.pop(KIT_NAME_KEY, None)
session.pop(EMAIL_CHECK_KEY, None)
session.clear()
return redirect("/home")


Expand Down

0 comments on commit f251d81

Please sign in to comment.