From 02818bfe7cbfee4a777efcb570cd7cd924b01330 Mon Sep 17 00:00:00 2001 From: Nathaniel Allred Date: Thu, 24 Feb 2022 09:14:50 -0600 Subject: [PATCH] revert to status found for login cws (#19625) --- api4/user.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api4/user.go b/api4/user.go index 9db905bc20..af2be717ac 100644 --- a/api4/user.go +++ b/api4/user.go @@ -1938,7 +1938,7 @@ func loginCWS(c *Context, w http.ResponseWriter, r *http.Request) { if err != nil { c.LogAuditWithUserId("", "failure - login_id="+loginID) c.LogErrorByCode(err) - http.Redirect(w, r, *c.App.Config().ServiceSettings.SiteURL, http.StatusNotFound) + http.Redirect(w, r, *c.App.Config().ServiceSettings.SiteURL, http.StatusFound) return } auditRec.AddMeta("user", user) @@ -1946,12 +1946,12 @@ func loginCWS(c *Context, w http.ResponseWriter, r *http.Request) { err = c.App.DoLogin(c.AppContext, w, r, user, "", false, false, false) if err != nil { c.LogErrorByCode(err) - http.Redirect(w, r, *c.App.Config().ServiceSettings.SiteURL, http.StatusNotFound) + http.Redirect(w, r, *c.App.Config().ServiceSettings.SiteURL, http.StatusFound) return } c.LogAuditWithUserId(user.Id, "success") c.App.AttachSessionCookies(c.AppContext, w, r) - http.Redirect(w, r, *c.App.Config().ServiceSettings.SiteURL, http.StatusNotFound) + http.Redirect(w, r, *c.App.Config().ServiceSettings.SiteURL, http.StatusFound) } func logout(c *Context, w http.ResponseWriter, r *http.Request) {