fix(login): login not working with user password

This commit is contained in:
yusing 2025-05-31 07:11:19 +08:00
parent 9e5d33714c
commit abe81541db

View file

@ -124,7 +124,8 @@ func (auth *UserPassAuth) PostAuthCallbackHandler(w http.ResponseWriter, r *http
}
func (auth *UserPassAuth) LoginHandler(w http.ResponseWriter, r *http.Request) {
http.Redirect(w, r, "/login", http.StatusFound) // redirects to WebUI login page
w.Header().Set("X-Redirect-To", "/login")
w.WriteHeader(http.StatusForbidden)
}
func (auth *UserPassAuth) LogoutHandler(w http.ResponseWriter, r *http.Request) {