conf: remove legacy options (#6267)

* conf: remove legacy options

* Update tests
This commit is contained in:
ᴜɴᴋɴᴡᴏɴ
2020-08-22 22:25:21 +08:00
committed by GitHub
parent 05477f1d29
commit f0761eb7ec
6 changed files with 48 additions and 136 deletions

View File

@@ -364,8 +364,8 @@ func SignUpPost(c *context.Context, cpt *captcha.Captcha, f form.Register) {
}
}
// Send confirmation email, no need for social account.
if conf.Auth.RegisterEmailConfirm && u.ID > 1 {
// Send confirmation email.
if conf.Auth.RequireEmailConfirmation && u.ID > 1 {
email.SendActivateAccountMail(c.Context, db.NewMailerUser(u))
c.Data["IsSendRegisterMail"] = true
c.Data["Email"] = u.Email