File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1166,7 +1166,7 @@ func newService() {
1166
1166
Service .NoReplyAddress = sec .Key ("NO_REPLY_ADDRESS" ).MustString ("noreply.example.org" )
1167
1167
1168
1168
sec = Cfg .Section ("openid" )
1169
- Service .EnableOpenIDSignIn = sec .Key ("ENABLE_OPENID_SIGNIN" ).MustBool (false )
1169
+ Service .EnableOpenIDSignIn = sec .Key ("ENABLE_OPENID_SIGNIN" ).MustBool (! InstallLock )
1170
1170
Service .EnableOpenIDSignUp = sec .Key ("ENABLE_OPENID_SIGNUP" ).MustBool (! Service .DisableRegistration && Service .EnableOpenIDSignIn )
1171
1171
pats := sec .Key ("WHITELISTED_URIS" ).Strings (" " )
1172
1172
if len (pats ) != 0 {
Original file line number Diff line number Diff line change @@ -108,8 +108,8 @@ func Install(ctx *context.Context) {
108
108
form .OfflineMode = setting .OfflineMode
109
109
form .DisableGravatar = setting .DisableGravatar
110
110
form .EnableFederatedAvatar = setting .EnableFederatedAvatar
111
- form .EnableOpenIDSignIn = true
112
- form .EnableOpenIDSignUp = true
111
+ form .EnableOpenIDSignIn = setting . Service . EnableOpenIDSignIn
112
+ form .EnableOpenIDSignUp = setting . Service . EnableOpenIDSignUp
113
113
form .DisableRegistration = setting .Service .DisableRegistration
114
114
form .EnableCaptcha = setting .Service .EnableCaptcha
115
115
form .RequireSignInView = setting .Service .RequireSignInView
You can’t perform that action at this time.
0 commit comments