Skip to content

Commit

Permalink
Clear tokens when refreshing.
Browse files Browse the repository at this point in the history
  • Loading branch information
glasser committed Jan 12, 2011
1 parent e5c6db3 commit 26aaf78
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hq/puzzles.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,8 @@ def txn():

class LogOutForTokensHandler(handler.RequestHandler):
def get(self, puzzle_id):
gdata.gauth.AeDelete(RequestTokenKey())
gdata.gauth.AeDelete(AccessTokenKey())
self.redirect(users.create_logout_url(
dest_url=GetOAuthTokenHandler.get_url(puzzle_id)))

Expand Down

0 comments on commit 26aaf78

Please sign in to comment.