Let SendEmail() return string.

This commit is contained in:
Yang Luo
2021-05-29 15:25:41 +08:00
parent 0f8a46fe0b
commit 215b96c881
2 changed files with 8 additions and 11 deletions

View File

@ -54,15 +54,7 @@ func SendVerificationCodeToEmail(organization *Organization, user *User, provide
return result
}
msg, err := SendEmail(provider, title, content, dest, sender)
if msg != "" {
return msg
}
if err != nil {
panic(err)
}
return ""
return SendEmail(provider, title, content, dest, sender)
}
func SendVerificationCodeToPhone(organization *Organization, user *User, provider *Provider, remoteAddr string, dest string) string {