Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }
Exemple #3
0
        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);
        }
Exemple #4
0
        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);
        }