Try to fix #25952
Co-authored-by: Giteabot <teabot@gitea.io>
}
store.GetData()["EnableOpenIDSignIn"] = setting.Service.EnableOpenIDSignIn
store.GetData()["EnableSSPI"] = true
- // in this case, the store is Gitea's web Context
+ // in this case, the Verify function is called in Gitea's web context
// FIXME: it doesn't look good to render the page here, why not redirect?
- store.(*gitea_context.Context).HTML(http.StatusUnauthorized, tplSignIn)
+ gitea_context.GetWebContext(req).HTML(http.StatusUnauthorized, tplSignIn)
return nil, err
}
if outToken != "" {