2022-05-19 13:50:10 -07:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
2022-05-20 11:09:24 -07:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
2022-05-19 13:50:10 -07:00
|
|
|
using System.Linq;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
namespace API.Dtos
|
|
|
|
{
|
|
|
|
public class RegisterDto
|
|
|
|
{
|
2022-05-20 11:09:24 -07:00
|
|
|
[Required]
|
2022-05-19 13:50:10 -07:00
|
|
|
public string DisplayName { get; set; }
|
2022-05-20 11:09:24 -07:00
|
|
|
|
|
|
|
[Required]
|
|
|
|
[EmailAddress]
|
2022-05-19 13:50:10 -07:00
|
|
|
public string Email { get; set; }
|
2022-05-20 11:09:24 -07:00
|
|
|
|
|
|
|
[Required]
|
|
|
|
[RegularExpression("(?=^.{6,10}$)(?=.*\\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%^&*()_+}{":;'?/>.<,])(?!.*\\s).*$", ErrorMessage = "Password does not meet complexity. Password must have 1 Uppercase, 1 Lowercase, 1 Number, 1 Special Character and at least 6 characeters.")]
|
2022-05-19 13:50:10 -07:00
|
|
|
public string Password { get; set; }
|
|
|
|
}
|
|
|
|
}
|