Skip to content

Commit

Permalink
Fix incorrect key name so registerManualConfirm setting works as expe…
Browse files Browse the repository at this point in the history
…cted. (#14455)
  • Loading branch information
dofrijonsson authored Jan 26, 2021
1 parent efe4235 commit 012bf38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/setting/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 012bf38

Please sign in to comment.