From f76c30094f086162d09926a95e9a75c91177a674 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 14 Jan 2021 23:35:10 +0800 Subject: [PATCH] Fix typo (#14332) --- modules/auth/sso/sspi_windows.go | 2 +- routers/routes/recovery.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/auth/sso/sspi_windows.go b/modules/auth/sso/sspi_windows.go index 44dfa81aa..46309c27f 100644 --- a/modules/auth/sso/sspi_windows.go +++ b/modules/auth/sso/sspi_windows.go @@ -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 diff --git a/routers/routes/recovery.go b/routers/routes/recovery.go index f392d1d55..7f33fee0f 100644 --- a/routers/routes/recovery.go +++ b/routers/routes/recovery.go @@ -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 {