Skip to content

Commit

Permalink
Revert "fix(login): expire cookie on error with login"
Browse files Browse the repository at this point in the history
This reverts commit 6d726e3.
  • Loading branch information
fiftin committed Mar 27, 2024
1 parent ed87ae7 commit 9ef5336
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions api/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,15 +148,7 @@ func createSession(w http.ResponseWriter, r *http.Request, user db.User) {
"session": newSession.ID,
})
if err != nil {
http.SetCookie(w, &http.Cookie{
Name: "semaphore",
Value: "",
Path: "/",
MaxAge: -1,
})

helpers.WriteError(w, err)
return
panic(err)
}

http.SetCookie(w, &http.Cookie{
Expand Down

0 comments on commit 9ef5336

Please sign in to comment.