From 56323f89be049dcaf0244db1e06551d16f360bdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dofri=20J=C3=B3nsson?= Date: Mon, 25 Jan 2021 10:34:33 +0100 Subject: [PATCH] Fix incorrect key name so registerManualConfirm setting works as expected. --- modules/setting/service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/setting/service.go b/modules/setting/service.go index 4410a600dd86e..b6611830be191 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 }