summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-30 00:22:26 +0800
committerUnknwon <u@gogs.io>2015-08-30 00:22:26 +0800
commit302938e646d764cb7f0f63720d6b44fd1fa6e065 (patch)
treedfb4f75d71f9db406ea2155159282268226ab8b7 /routers
parent8d73832bdfeecb3889cf5a1f2b4e41b9d4d37f62 (diff)
downloadgitea-302938e646d764cb7f0f63720d6b44fd1fa6e065.tar.gz
gitea-302938e646d764cb7f0f63720d6b44fd1fa6e065.zip
#1333 Disable Gravatar option when install
Diffstat (limited to 'routers')
-rw-r--r--routers/install.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/routers/install.go b/routers/install.go
index 0a8af4f284..72c8b137b0 100644
--- a/routers/install.go
+++ b/routers/install.go
@@ -131,6 +131,7 @@ func Install(ctx *middleware.Context) {
// Server and other services settings
form.OfflineMode = setting.OfflineMode
+ form.DisableGravatar = setting.DisableGravatar
form.DisableRegistration = setting.Service.DisableRegistration
form.RequireSignInView = setting.Service.RequireSignInView
@@ -260,6 +261,7 @@ func InstallPost(ctx *middleware.Context, form auth.InstallForm) {
cfg.Section("service").Key("ENABLE_NOTIFY_MAIL").SetValue(com.ToStr(form.MailNotify))
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("REQUIRE_SIGNIN_VIEW").SetValue(com.ToStr(form.RequireSignInView))