Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. public class RegisterViewModel
  2. {
  3. [Required]
  4. [EmailAddress]
  5. [Display(Name = "Email")]
  6. public string Email { get; set; }
  7.  
  8. //ADDED THIS IN AUTHENTICATION
  9. [Required]
  10. [StringLength(100, ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 6)]
  11. [Display(Name = "Username")]
  12. public string Username { get; set; }
  13.  
  14. [Required]
  15. [StringLength(100, ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 6)]
  16. [DataType(DataType.Password)]
  17. [Display(Name = "Password")]
  18. public string Password { get; set; }
  19.  
  20. [DataType(DataType.Password)]
  21. [Display(Name = "Confirm password")]
  22. [Compare("Password", ErrorMessage = "The password and confirmation password do not match.")]
  23. public string ConfirmPassword { get; set; }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement