summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-04-14 15:54:49 -0600
committermo khan <mo@mokhan.ca>2025-04-14 15:54:49 -0600
commitefc3c293f472a6993ca086fa335daf3719c6922a (patch)
tree67551c81bc29041b4fb68ddb754188d2c7c34431 /app
parentb12eb55fdb603290e3bc62880f6e9dff538571de (diff)
refactor: do not explicitly set the 301 status code
Diffstat (limited to 'app')
-rw-r--r--app/controllers/sessions/controller.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/app/controllers/sessions/controller.go b/app/controllers/sessions/controller.go
index 1a709de..ba3d112 100644
--- a/app/controllers/sessions/controller.go
+++ b/app/controllers/sessions/controller.go
@@ -20,8 +20,6 @@ func (c *Controller) MountTo(mux *http.ServeMux) {
}
func (c *Controller) New(w http.ResponseWriter, r *http.Request) {
- w.WriteHeader(http.StatusFound)
-
url := c.cfg.Config.AuthCodeURL("todo-csrf-token", oauth2.SetAuthURLParam("audience", "todo"))
http.Redirect(w, r, url, http.StatusFound)
}