aboutsummaryrefslogtreecommitdiffstats
path: root/modules/base
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-04-26 22:34:48 -0600
committerUnknown <joe2010xtmf@163.com>2014-04-26 22:34:48 -0600
commit59d0e73c3507296b31c8e741b44afc7bfe1eb695 (patch)
tree79970b755e0c5309b0f05dcd45053f91500ba85b /modules/base
parent1badb2bbccfe81303f69f8dedf57c22fb89d4b99 (diff)
downloadgitea-59d0e73c3507296b31c8e741b44afc7bfe1eb695.tar.gz
gitea-59d0e73c3507296b31c8e741b44afc7bfe1eb695.zip
Batch mirror fix
Diffstat (limited to 'modules/base')
-rw-r--r--modules/base/conf.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/base/conf.go b/modules/base/conf.go
index 9a9adfdac6..17b55316a8 100644
--- a/modules/base/conf.go
+++ b/modules/base/conf.go
@@ -53,7 +53,6 @@ var (
Domain string
SecretKey string
RunUser string
- LdapAuth bool
RepoRootPath string
ScriptType string
@@ -93,6 +92,7 @@ var Service struct {
NotifyMail bool
ActiveCodeLives int
ResetPwdCodeLives int
+ LdapAuth bool
}
func ExecDir() (string, error) {
@@ -179,8 +179,8 @@ func newLogService() {
}
func newLdapService() {
- LdapAuth = Cfg.MustBool("security", "LDAP_AUTH", false)
- if !LdapAuth {
+ Service.LdapAuth = Cfg.MustBool("security", "LDAP_AUTH", false)
+ if !Service.LdapAuth {
return
}
@@ -201,7 +201,7 @@ func newLdapService() {
}
if nbsrc == 0 {
log.Warn("No valide LDAP found, LDAP Authentication NOT enabled")
- LdapAuth = false
+ Service.LdapAuth = false
return
}