mirror of
https://github.com/gogs/gogs.git
synced 2026-05-07 01:07:15 +02:00
conf: remove legacy options (#6267)
* conf: remove legacy options * Update tests
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user