12 lines
415 B
C#
12 lines
415 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Sandbox.Models.ViewModels;
|
|
|
|
public class UserRegister
|
|
{
|
|
public string Email { get; set; } = string.Empty;
|
|
[Required, StringLength(100, MinimumLength = 5)]
|
|
public string Password { get; set; } = string.Empty;
|
|
[Compare("Password", ErrorMessage = "The password do not match.")]
|
|
public string ConfirmPassword { get; set; } = string.Empty;
|
|
} |