public EmailTemplate GenerateTwoFactorAuthenticationEmail(string to, string code) { var emailTemplate = new ResetPasswordEmailTemplate(to, code); emailTemplate.SetSendGridTemplateId(_twoFactorAuthTemplateId); emailTemplate.AddSendGridSubstitutions("-to-", to); emailTemplate.AddSendGridSubstitutions("-code-", code); return(emailTemplate); }
public EmailTemplate GenerateTwoFactorAuthenticationEmail(string to, string code) { var emailTemplate = new ResetPasswordEmailTemplate(to, code); emailTemplate.SetSendGridTemplateId("3ebb8487-45be-44f6-8525-bfcd4fb28b43"); emailTemplate.AddSendGridSubstitutions("-to-", to); emailTemplate.AddSendGridSubstitutions("-code-", code); return(emailTemplate); }
public EmailTemplate GeneratePasswordResetEmail(string to, string callbackUrl) { var emailTemplate = new ResetPasswordEmailTemplate(to, callbackUrl); emailTemplate.SetSendGridTemplateId(_resetPasswordTemplateId); emailTemplate.AddSendGridSubstitutions("-to-", to); emailTemplate.AddSendGridSubstitutions("-code-", callbackUrl); return(emailTemplate); }
public EmailTemplate GeneratePasswordResetEmail(string to, string callbackUrl) { var emailTemplate = new ResetPasswordEmailTemplate(to, callbackUrl); emailTemplate.SetSendGridTemplateId("aa74fc08-e40a-4889-9f05-d92d46704918"); emailTemplate.AddSendGridSubstitutions("-to-", to); emailTemplate.AddSendGridSubstitutions("-code-", callbackUrl); return(emailTemplate); }