From 5f1183cecf4f3c6bf677369c4e2a2788b795ab15 Mon Sep 17 00:00:00 2001 From: Unknwon <u@gogs.io> Date: Sun, 13 Sep 2015 12:14:32 -0400 Subject: #697 add install option --- routers/install.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'routers/install.go') diff --git a/routers/install.go b/routers/install.go index 8daf8896..b6ac99cd 100644 --- a/routers/install.go +++ b/routers/install.go @@ -151,6 +151,7 @@ func Install(ctx *middleware.Context) { form.OfflineMode = setting.OfflineMode form.DisableGravatar = setting.DisableGravatar form.DisableRegistration = setting.Service.DisableRegistration + form.EnableCaptcha = setting.Service.EnableCaptcha form.RequireSignInView = setting.Service.RequireSignInView 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("picture").Key("DISABLE_GRAVATAR").SetValue(com.ToStr(form.DisableGravatar)) 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("").Key("RUN_MODE").SetValue("prod") -- cgit v1.2.3