|
|
@ -151,6 +151,7 @@ func Install(ctx *middleware.Context) {
|
|
|
|
form.OfflineMode = setting.OfflineMode
|
|
|
|
form.OfflineMode = setting.OfflineMode
|
|
|
|
form.DisableGravatar = setting.DisableGravatar
|
|
|
|
form.DisableGravatar = setting.DisableGravatar
|
|
|
|
form.DisableRegistration = setting.Service.DisableRegistration
|
|
|
|
form.DisableRegistration = setting.Service.DisableRegistration
|
|
|
|
|
|
|
|
form.EnableCaptcha = setting.Service.EnableCaptcha
|
|
|
|
form.RequireSignInView = setting.Service.RequireSignInView
|
|
|
|
form.RequireSignInView = setting.Service.RequireSignInView
|
|
|
|
|
|
|
|
|
|
|
|
auth.AssignForm(form, ctx.Data)
|
|
|
|
auth.AssignForm(form, ctx.Data)
|
|
|
@ -301,6 +302,7 @@ func InstallPost(ctx *middleware.Context, form auth.InstallForm) {
|
|
|
|
cfg.Section("server").Key("OFFLINE_MODE").SetValue(com.ToStr(form.OfflineMode))
|
|
|
|
cfg.Section("server").Key("OFFLINE_MODE").SetValue(com.ToStr(form.OfflineMode))
|
|
|
|
cfg.Section("picture").Key("DISABLE_GRAVATAR").SetValue(com.ToStr(form.DisableGravatar))
|
|
|
|
cfg.Section("picture").Key("DISABLE_GRAVATAR").SetValue(com.ToStr(form.DisableGravatar))
|
|
|
|
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("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("").Key("RUN_MODE").SetValue("prod")
|
|
|
|
cfg.Section("").Key("RUN_MODE").SetValue("prod")
|
|
|
|