using System.ComponentModel.DataAnnotations;

namespace MemberCenter.Web.Models.Account;

public sealed class ChangePasswordViewModel
{
    [Display(Name = "CurrentPassword")]
    [Required(ErrorMessage = "The {0} field is required.")]
    [DataType(DataType.Password)]
    public string CurrentPassword { 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;
}
