From 93e1d170907956e2bd36323e460e7c4b273304f1 Mon Sep 17 00:00:00 2001 From: yusing Date: Sun, 14 Sep 2025 11:19:37 +0800 Subject: [PATCH] fix(auth): revert userpass PostAuthCallback to respond http 200 --- internal/auth/userpass.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/auth/userpass.go b/internal/auth/userpass.go index 5ec61f1c..52f13f24 100644 --- a/internal/auth/userpass.go +++ b/internal/auth/userpass.go @@ -125,7 +125,7 @@ func (auth *UserPassAuth) PostAuthCallbackHandler(w http.ResponseWriter, r *http return } SetTokenCookie(w, r, auth.TokenCookieName(), token, auth.tokenTTL) - http.Redirect(w, r, "/", http.StatusFound) + w.WriteHeader(http.StatusOK) } func (auth *UserPassAuth) LoginHandler(w http.ResponseWriter, r *http.Request) {