fix(auth): revert userpass PostAuthCallback to respond http 200

This commit is contained in:
yusing
2025-09-14 11:19:37 +08:00
parent d72d403e2c
commit 93e1d17090

View File

@@ -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) {