SetPasswordViewModel.cs 798 B

1234567891011121314151617181920212223
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.Linq;
  5. using System.Threading.Tasks;
  6. namespace Winsoft.GOV.XF.WXCore.Models.ManageViewModels
  7. {
  8. public class SetPasswordViewModel
  9. {
  10. [Required]
  11. [StringLength(100, ErrorMessage = "The {0} must be at least {2} and at max {1} characters long.", MinimumLength = 6)]
  12. [DataType(DataType.Password)]
  13. [Display(Name = "New password")]
  14. public string NewPassword { get; set; }
  15. [DataType(DataType.Password)]
  16. [Display(Name = "Confirm new password")]
  17. [Compare("NewPassword", ErrorMessage = "The new password and confirmation password do not match.")]
  18. public string ConfirmPassword { get; set; }
  19. }
  20. }