Skip to content

Commit 2db2506

Browse files
committed
fix
1 parent 24b49bc commit 2db2506

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/auth/sspi_windows.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ func (s *SSPI) Verify(req *http.Request, w http.ResponseWriter, store DataStore,
8989
}
9090
store.GetData()["EnableOpenIDSignIn"] = setting.Service.EnableOpenIDSignIn
9191
store.GetData()["EnableSSPI"] = true
92-
// in this case, the store is Gitea's web Context
92+
// in this case, the Verify function is called in Gitea's web context
9393
// FIXME: it doesn't look good to render the page here, why not redirect?
94-
store.(*gitea_context.Context).HTML(http.StatusUnauthorized, tplSignIn)
94+
gitea_context.GetWebContext(req).HTML(http.StatusUnauthorized, tplSignIn)
9595
return nil, err
9696
}
9797
if outToken != "" {

0 commit comments

Comments
 (0)