]> source.dussan.org Git - gitea.git/commitdiff
Fix typo (#14332)
authorLunny Xiao <xiaolunwen@gmail.com>
Thu, 14 Jan 2021 15:35:10 +0000 (23:35 +0800)
committerGitHub <noreply@github.com>
Thu, 14 Jan 2021 15:35:10 +0000 (23:35 +0800)
modules/auth/sso/sspi_windows.go
routers/routes/recovery.go

index 44dfa81aa1c37198fd41f5c1d215352437be0a51..46309c27f71a366d5fdb7fc62ee5481926888fc8 100644 (file)
@@ -95,7 +95,7 @@ func (s *SSPI) VerifyAuthData(req *http.Request, w http.ResponseWriter, store Da
                // to login with another authentication method if SSPI authentication
                // fails
                store.GetData()["Flash"] = map[string]string{
-                       "ErrMsg": err.Error(),
+                       "ErrorMsg": err.Error(),
                }
                store.GetData()["EnableOpenIDSignIn"] = setting.Service.EnableOpenIDSignIn
                store.GetData()["EnableSSPI"] = true
index f392d1d553415dadf67706c38002aa8d370a5b3b..7f33fee0f3353651875b3d321dbfcf6720d91bca 100644 (file)
@@ -95,7 +95,7 @@ func Recovery() func(next http.Handler) http.Handler {
                                        w.Header().Set(`X-Frame-Options`, `SAMEORIGIN`)
 
                                        if setting.RunMode != "prod" {
-                                               store.Data["ErrMsg"] = combinedErr
+                                               store.Data["ErrorMsg"] = combinedErr
                                        }
                                        err = rnd.HTML(w, 500, "status/500", templates.BaseVars().Merge(store.Data))
                                        if err != nil {