using System.ComponentModel.DataAnnotations;

namespace MemberCenter.Web.Models.Account;

public sealed class ResetPasswordViewModel
{
    [Display(Name = "Email")]
    [Required(ErrorMessage = "The {0} field is required.")]
    [EmailAddress(ErrorMessage = "The {0} field is not a valid e-mail address.")]
    public string Email { get; set; } = string.Empty;

    [Display(Name = "Token")]
    [Required(ErrorMessage = "The {0} field is required.")]
    public string Token { get; set; } = string.Empty;

    [Display(Name = "NewPassword")]
    [Required(ErrorMessage = "The {0} field is required.")]
    [DataType(DataType.Password)]
    public string NewPassword { get; set; } = string.Empty;

    [Display(Name = "ConfirmPassword")]
    [Required(ErrorMessage = "The {0} field is required.")]
    [Compare(nameof(NewPassword), ErrorMessage = "The {0} and {1} fields do not match.")]
    [DataType(DataType.Password)]
    public string ConfirmPassword { get; set; } = string.Empty;
}
