using System.ComponentModel.DataAnnotations;
namespace BlueWest.WebApi.Context.Users;
///
/// Reset password view model
///
public class ResetPasswordViewModel
{
///
/// Email address from which the password needs to be reset.
///
[Required]
[EmailAddress]
public string Email { get; set; }
///
/// Password
///
[Required]
[StringLength(100, ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 6)]
[DataType(DataType.Password)]
public string Password { get; set; }
///
/// Password confirmation
///
[DataType(DataType.Password)]
[Display(Name = "Confirm password")]
[Compare("Password", ErrorMessage = "The password and confirmation password do not match.")]
public string ConfirmPassword { get; set; }
///
/// The code to reset password.
///
public string Code { get; set; }
}