|
|
@ -112,6 +112,7 @@ func Install(ctx *context.Context) { |
|
|
|
form.EnableOpenIDSignIn = setting.Service.EnableOpenIDSignIn |
|
|
|
form.EnableOpenIDSignIn = setting.Service.EnableOpenIDSignIn |
|
|
|
form.EnableOpenIDSignUp = setting.Service.EnableOpenIDSignUp |
|
|
|
form.EnableOpenIDSignUp = setting.Service.EnableOpenIDSignUp |
|
|
|
form.DisableRegistration = setting.Service.DisableRegistration |
|
|
|
form.DisableRegistration = setting.Service.DisableRegistration |
|
|
|
|
|
|
|
form.AllowOnlyExternalRegistration = setting.Service.AllowOnlyExternalRegistration |
|
|
|
form.EnableCaptcha = setting.Service.EnableCaptcha |
|
|
|
form.EnableCaptcha = setting.Service.EnableCaptcha |
|
|
|
form.RequireSignInView = setting.Service.RequireSignInView |
|
|
|
form.RequireSignInView = setting.Service.RequireSignInView |
|
|
|
form.DefaultKeepEmailPrivate = setting.Service.DefaultKeepEmailPrivate |
|
|
|
form.DefaultKeepEmailPrivate = setting.Service.DefaultKeepEmailPrivate |
|
|
@ -304,6 +305,7 @@ func InstallPost(ctx *context.Context, form auth.InstallForm) { |
|
|
|
cfg.Section("openid").Key("ENABLE_OPENID_SIGNIN").SetValue(com.ToStr(form.EnableOpenIDSignIn)) |
|
|
|
cfg.Section("openid").Key("ENABLE_OPENID_SIGNIN").SetValue(com.ToStr(form.EnableOpenIDSignIn)) |
|
|
|
cfg.Section("openid").Key("ENABLE_OPENID_SIGNUP").SetValue(com.ToStr(form.EnableOpenIDSignUp)) |
|
|
|
cfg.Section("openid").Key("ENABLE_OPENID_SIGNUP").SetValue(com.ToStr(form.EnableOpenIDSignUp)) |
|
|
|
cfg.Section("service").Key("DISABLE_REGISTRATION").SetValue(com.ToStr(form.DisableRegistration)) |
|
|
|
cfg.Section("service").Key("DISABLE_REGISTRATION").SetValue(com.ToStr(form.DisableRegistration)) |
|
|
|
|
|
|
|
cfg.Section("service").Key("ALLOW_ONLY_EXTERNAL_REGISTRATION").SetValue(com.ToStr(form.AllowOnlyExternalRegistration)) |
|
|
|
cfg.Section("service").Key("ENABLE_CAPTCHA").SetValue(com.ToStr(form.EnableCaptcha)) |
|
|
|
cfg.Section("service").Key("ENABLE_CAPTCHA").SetValue(com.ToStr(form.EnableCaptcha)) |
|
|
|
cfg.Section("service").Key("REQUIRE_SIGNIN_VIEW").SetValue(com.ToStr(form.RequireSignInView)) |
|
|
|
cfg.Section("service").Key("REQUIRE_SIGNIN_VIEW").SetValue(com.ToStr(form.RequireSignInView)) |
|
|
|
cfg.Section("service").Key("DEFAULT_KEEP_EMAIL_PRIVATE").SetValue(com.ToStr(form.DefaultKeepEmailPrivate)) |
|
|
|
cfg.Section("service").Key("DEFAULT_KEEP_EMAIL_PRIVATE").SetValue(com.ToStr(form.DefaultKeepEmailPrivate)) |
|
|
|