Skip to content

Commit

Permalink
Adds missing EmailTemplate types (#742)
Browse files Browse the repository at this point in the history
  • Loading branch information
kailash-b authored Nov 5, 2024
2 parents 7c9d625 + 341262a commit 9aee384
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,24 @@ public enum EmailTemplateName
/// This email will provide the MFA verification code to a user that is using a MFA email verifier.
/// </summary>
[EnumMember(Value = "mfa_oob_code")]
MfaOobCode
MfaOobCode,

/// <summary>
///
/// </summary>
[EnumMember(Value = "verify_email_by_code")]
VerifyEmailByCode,

/// <summary>
///
/// </summary>
[EnumMember(Value = "reset_email_by_code")]
ResetEmailByCode,

/// <summary>
///
/// </summary>
[EnumMember(Value = "user_invitation")]
UserInvitation
}
}
16 changes: 4 additions & 12 deletions tests/Auth0.ManagementApi.IntegrationTests/EmailTemplatesTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,20 +75,12 @@ public async Task Test_email_templates_crud_sequence()
});
}


// Patch each template
foreach (var _emailTemplateName in emailTemplateNames)
var updatedTemplate = await fixture.ApiClient.EmailTemplates.PatchAsync(emailTemplate.Template, new EmailTemplatePatchRequest
{
// Try and create the template. If it already exisits, we'll just update it
var _emailTemplate = await fixture.ApiClient.EmailTemplates.PatchAsync(_emailTemplateName, new EmailTemplatePatchRequest
{
Enabled = false,
From = "[email protected]"
});
}
Enabled = false,
From = "[email protected]"
});
}

}

}
}

0 comments on commit 9aee384

Please sign in to comment.