summaryrefslogtreecommitdiffstats
path: root/modules/setting
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-09-13 09:51:51 -0400
committerUnknwon <u@gogs.io>2015-09-13 09:51:51 -0400
commit8e0a69f86a9e103d1d82d3c5000e01b4e2570a51 (patch)
tree6c0802f63be1ff7867b80375b406dd8b520f6b1e /modules/setting
parente2d6b0116e44ca0fa2c577f40adde4ebfa612ae0 (diff)
downloadgitea-8e0a69f86a9e103d1d82d3c5000e01b4e2570a51.tar.gz
gitea-8e0a69f86a9e103d1d82d3c5000e01b4e2570a51.zip
#697 disable captcha and new admin create user UI
Diffstat (limited to 'modules/setting')
-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 4863550d31..06d02005e1 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -421,6 +421,7 @@ var Service struct {
EnableReverseProxyAuth bool
EnableReverseProxyAutoRegister bool
DisableMinimumKeySizeCheck bool
+ DisableCaptcha bool
}
func newService() {
@@ -434,6 +435,7 @@ func newService() {
Service.EnableReverseProxyAuth = sec.Key("ENABLE_REVERSE_PROXY_AUTHENTICATION").MustBool()
Service.EnableReverseProxyAutoRegister = sec.Key("ENABLE_REVERSE_PROXY_AUTO_REGISTRATION").MustBool()
Service.DisableMinimumKeySizeCheck = sec.Key("DISABLE_MINIMUM_KEY_SIZE_CHECK").MustBool()
+ Service.DisableCaptcha = sec.Key("DISABLE_CAPTCHA").MustBool()
}
var logLevels = map[string]string{