#1333 Disable Gravatar option when install
This commit is contained in:
parent
8d73832bdf
commit
302938e646
8 changed files with 22 additions and 5 deletions
|
@ -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))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue