diff options
| author | mo khan <mo@mokhan.ca> | 2025-05-07 08:51:01 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-05-07 08:51:01 -0700 |
| commit | 16641c74b7247f5b5c059f5726fbc724fe3858e4 (patch) | |
| tree | 493a8850498f52491a25f2764037a15d1f5239e1 /app/controllers | |
| parent | f417e03cb09024743baf2f749e4309032afd5f39 (diff) | |
refactor: delegate to cookie package to write to response stream
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/sessions/controller.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/sessions/controller.go b/app/controllers/sessions/controller.go index 50aac63..13cb2de 100644 --- a/app/controllers/sessions/controller.go +++ b/app/controllers/sessions/controller.go @@ -139,7 +139,7 @@ func (c *Controller) Create(w http.ResponseWriter, r *http.Request) { return } - http.SetCookie(w, cookie.New("session", encoded, xcookie.WithExpiration(tokens.Expiry))) + xcookie.Write(w, cookie.New("session", encoded, xcookie.WithExpiration(tokens.Expiry))) http.Redirect(w, r, "/dashboard", http.StatusFound) } |
