0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-06-01 18:19:09 +02:00

Fix incorrect key name so registerManualConfirm setting works as expected. (#14455)

This commit is contained in:
Dofri Jónsson 2021-01-26 02:20:59 +01:00 committed by GitHub
parent efe4235412
commit 012bf388ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}