summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
author无闻 <u@gogs.io>2015-02-06 21:03:31 -0500
committer无闻 <u@gogs.io>2015-02-06 21:03:31 -0500
commit87b90372a7a30fb9431e03d84d766c92447ff297 (patch)
tree5d26acd34f635be7560dc76316a75e240acfd575 /modules
parent5a99e9a37b1fa194675655e64d5f32ac6cf61729 (diff)
parent92036a78d1b00dddd3ab46a7025024cb29e91996 (diff)
downloadgitea-87b90372a7a30fb9431e03d84d766c92447ff297.tar.gz
gitea-87b90372a7a30fb9431e03d84d766c92447ff297.zip
Merge pull request #908 from nicolai86/feature/hide-signup-button-884
Make Signup button display configurable - #884
Diffstat (limited to 'modules')
-rw-r--r--modules/setting/setting.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index e7c44cdd4f..4d407362c5 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -311,6 +311,7 @@ func NewConfigContext() {
var Service struct {
RegisterEmailConfirm bool
DisableRegistration bool
+ ShowRegistrationButton bool
RequireSignInView bool
EnableCacheAvatar bool
EnableNotifyMail bool
@@ -324,6 +325,7 @@ func newService() {
Service.ActiveCodeLives = Cfg.Section("service").Key("ACTIVE_CODE_LIVE_MINUTES").MustInt(180)
Service.ResetPwdCodeLives = Cfg.Section("service").Key("RESET_PASSWD_CODE_LIVE_MINUTES").MustInt(180)
Service.DisableRegistration = Cfg.Section("service").Key("DISABLE_REGISTRATION").MustBool()
+ Service.ShowRegistrationButton = Cfg.Section("service").Key("SHOW_REGISTRATION_BUTTON").MustBool()
Service.RequireSignInView = Cfg.Section("service").Key("REQUIRE_SIGNIN_VIEW").MustBool()
Service.EnableCacheAvatar = Cfg.Section("service").Key("ENABLE_CACHE_AVATAR").MustBool()
Service.EnableReverseProxyAuth = Cfg.Section("service").Key("ENABLE_REVERSE_PROXY_AUTHENTICATION").MustBool()