Fix: send test email no need enable email switch

pull/119/head
zijiren233 11 months ago
parent 0411b0187a
commit 202d4b583c

@ -203,10 +203,6 @@ func VerifyBindCaptchaEmail(userID, userEmail, captcha string) (bool, error) {
}
func SendTestEmail(username, email string) error {
if !EnableEmail.Get() {
return ErrEmailNotEnabled
}
if email == "" {
return errors.New("email is empty")
}

Loading…
Cancel
Save