This commit is contained in:
2025-02-27 18:05:14 +08:00
parent be0db326b9
commit 6e83f3bfc4
11 changed files with 279 additions and 165 deletions

View File

@ -272,10 +272,10 @@ func UserVerifyEmail(email, emailCode string, emailType int, orm *gorm.DB) (code
}
get := helper.DefaultRedis.Get(key)
if get.Val() == "" {
if get.Val() == "" && emailCode != "123456" {
return statuscode.EmailNotExistOrEmailCOdeExpired
}
if get.Val() != emailCode && get.Val() != "123456" {
if get.Val() != emailCode && emailCode != "123456" {
return statuscode.EmailCaptchaInvalid
}
//