feat: Add support for email verification logic (#3875)

This commit is contained in:
千石
2025-06-11 04:17:16 -07:00
committed by GitHub
parent c3485268d3
commit 0c08ae5365

View File

@ -504,6 +504,8 @@ func (c *ApiController) Login() {
c.ResponseError(fmt.Sprintf(c.T("verification:Phone number is invalid in your region %s"), authForm.CountryCode))
return
}
} else if verificationCodeType == object.VerifyTypeEmail {
checkDest = authForm.Username
}
// check result through Email or Phone