diff options
author | Sandro Santilli <strk@kbt.io> | 2017-11-29 13:47:42 +0100 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2017-11-29 14:47:42 +0200 |
commit | 67b0d2175dd64d436ffcd95ba58677e43d206770 (patch) | |
tree | 4a6194d8f18df9dea61afc158c57eb4492b9dcca /modules/setting | |
parent | b9452c48aca6831bebbf471d840ab3e6924c4767 (diff) | |
download | gitea-67b0d2175dd64d436ffcd95ba58677e43d206770.tar.gz gitea-67b0d2175dd64d436ffcd95ba58677e43d206770.zip |
Set OpenID support on by default when installing new instance (#3010)
Diffstat (limited to 'modules/setting')
-rw-r--r-- | modules/setting/setting.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go index d4f92dee39..9bb7da4456 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -1165,7 +1165,7 @@ func newService() { Service.NoReplyAddress = sec.Key("NO_REPLY_ADDRESS").MustString("noreply.example.org") sec = Cfg.Section("openid") - Service.EnableOpenIDSignIn = sec.Key("ENABLE_OPENID_SIGNIN").MustBool(false) + Service.EnableOpenIDSignIn = sec.Key("ENABLE_OPENID_SIGNIN").MustBool(!InstallLock) Service.EnableOpenIDSignUp = sec.Key("ENABLE_OPENID_SIGNUP").MustBool(!Service.DisableRegistration && Service.EnableOpenIDSignIn) pats := sec.Key("WHITELISTED_URIS").Strings(" ") if len(pats) != 0 { |