This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Api.Models
|
||||
{
|
||||
public sealed class SubscribeRequest
|
||||
{
|
||||
|
||||
[Required, EmailAddress, StringLength(200)]
|
||||
public string Email { get; set; } = "";
|
||||
|
||||
// Token returned by the captcha widget
|
||||
[Required]
|
||||
public string CaptchaToken { get; set; } = "";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user