There was an error while loading. Please reload this page.
1 parent 950f2e2 commit 3ebbdfaCopy full SHA for 3ebbdfa
1 file changed
modules/setting/setting.go
@@ -995,8 +995,8 @@ func newService() {
995
Service.NoReplyAddress = sec.Key("NO_REPLY_ADDRESS").MustString("noreply.example.org")
996
997
sec = Cfg.Section("openid")
998
- Service.EnableOpenIDSignIn = sec.Key("ENABLE_OPENID_SIGNIN").MustBool(true)
999
- Service.EnableOpenIDSignUp = sec.Key("ENABLE_OPENID_SIGNUP").MustBool(!Service.DisableRegistration)
+ Service.EnableOpenIDSignIn = sec.Key("ENABLE_OPENID_SIGNIN").MustBool(false)
+ Service.EnableOpenIDSignUp = sec.Key("ENABLE_OPENID_SIGNUP").MustBool(!Service.DisableRegistration && Service.EnableOpenIDSignIn)
1000
pats := sec.Key("WHITELISTED_URIS").Strings(" ")
1001
if len(pats) != 0 {
1002
Service.OpenIDWhitelist = make([]*regexp.Regexp, len(pats))
0 commit comments