summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDofri Jónsson <77961427+dofrijonsson@users.noreply.github.com>2021-01-26 02:20:59 +0100
committerGitHub <noreply@github.com>2021-01-26 09:20:59 +0800
commit012bf388ab1425b02ccdf2fee677221bad18d0e8 (patch)
tree2fd73affb34b5f8597cba0fb324c7c7716f6eb9f
parentefe42354127331d672cc437e5d8df567aa9dfe59 (diff)
downloadgitea-012bf388ab1425b02ccdf2fee677221bad18d0e8.tar.gz
gitea-012bf388ab1425b02ccdf2fee677221bad18d0e8.zip
Fix incorrect key name so registerManualConfirm setting works as expected. (#14455)
-rw-r--r--modules/setting/service.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/setting/service.go b/modules/setting/service.go
index 4410a600dd..b6611830be 100644
--- a/modules/setting/service.go
+++ b/modules/setting/service.go
@@ -67,7 +67,7 @@ func newService() {
Service.DisableRegistration = sec.Key("DISABLE_REGISTRATION").MustBool()
Service.AllowOnlyExternalRegistration = sec.Key("ALLOW_ONLY_EXTERNAL_REGISTRATION").MustBool()
if !sec.Key("REGISTER_EMAIL_CONFIRM").MustBool() {
- Service.RegisterManualConfirm = sec.Key("REGISTER_EMAIL_CONFIRM").MustBool(false)
+ Service.RegisterManualConfirm = sec.Key("REGISTER_MANUAL_CONFIRM").MustBool(false)
} else {
Service.RegisterManualConfirm = false
}