templates-fix

This commit is contained in:
Untone 2024-01-05 20:35:58 +03:00
parent d47b39bb1d
commit bb62b4adfd

View File

@ -49,13 +49,13 @@ func MailgunRest(to string, data map[string]interface{}, subject string, templat
// SendMailgun function to send
func SendMailgun(to []string, event string, data map[string]interface{}) error {
template := "email_confirmation"
template := "authorizer_email_confirmation"
switch event {
case constants.VerificationTypeBasicAuthSignup:
template = "email_confirmation_ru"
template = "authorizer_email_confirmation"
case constants.VerificationTypeForgotPassword:
template = "password_reset"
template = "authorizer_password_reset"
case constants.VerificationTypeInviteMember:
template = "author_invited"
case constants.VerificationTypeMagicLinkLogin: