Skip to content
Permalink
Browse files

Fix clearing cookie headers on logout

  • Loading branch information...
biilmann committed Oct 5, 2017
1 parent 7b9f929 commit 50b83d66fdf805f8fbcdae262d4f6aec6eaa63c7
Showing with 1 addition and 2 deletions.
  1. +1 −2 api/logout.go
@@ -13,9 +13,8 @@ func (a *API) Logout(w http.ResponseWriter, r *http.Request) error {
}

a.db.Logout(claims.Subject)
w.WriteHeader(http.StatusNoContent)

a.clearCookieToken(ctx, w)
w.WriteHeader(http.StatusNoContent)

return nil
}

0 comments on commit 50b83d6

Please sign in to comment.
You can’t perform that action at this time.