Skip to content

Commit 3ebbdfa

Browse files
authored
make openid support default false for compitable with v1.1 (#1650)
1 parent 950f2e2 commit 3ebbdfa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/setting/setting.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -995,8 +995,8 @@ func newService() {
995995
Service.NoReplyAddress = sec.Key("NO_REPLY_ADDRESS").MustString("noreply.example.org")
996996

997997
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)
998+
Service.EnableOpenIDSignIn = sec.Key("ENABLE_OPENID_SIGNIN").MustBool(false)
999+
Service.EnableOpenIDSignUp = sec.Key("ENABLE_OPENID_SIGNUP").MustBool(!Service.DisableRegistration && Service.EnableOpenIDSignIn)
10001000
pats := sec.Key("WHITELISTED_URIS").Strings(" ")
10011001
if len(pats) != 0 {
10021002
Service.OpenIDWhitelist = make([]*regexp.Regexp, len(pats))

0 commit comments

Comments
 (0)