diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-21 01:59:15 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-21 01:59:15 -0400 |
commit | 5373a3093eaf9bc9ced7a6b3335ccf1b17fd343e (patch) | |
tree | e9c9122c1161e36e262374d64d0cc346012a3982 /modules/base | |
parent | f6596f11c4aacd3c7c30098f7ffe79e936d21583 (diff) |
config option: Require sign in to view repository
Diffstat (limited to 'modules/base')
-rw-r--r-- | modules/base/conf.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/base/conf.go b/modules/base/conf.go index 42d50da4..3050b915 100644 --- a/modules/base/conf.go +++ b/modules/base/conf.go @@ -41,6 +41,7 @@ var ( var Service struct { RegisterEmailConfirm bool DisenableRegisteration bool + RequireSignInView bool ActiveCodeLives int ResetPwdCodeLives int } @@ -70,6 +71,7 @@ func newService() { Service.ActiveCodeLives = Cfg.MustInt("service", "ACTIVE_CODE_LIVE_MINUTES", 180) Service.ResetPwdCodeLives = Cfg.MustInt("service", "RESET_PASSWD_CODE_LIVE_MINUTES", 180) Service.DisenableRegisteration = Cfg.MustBool("service", "DISENABLE_REGISTERATION", false) + Service.RequireSignInView = Cfg.MustBool("service", "REQUIRE_SIGNIN_VIEW", false) } func newLogService() { |