Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

29 строки
821B

  1. using System.ComponentModel.DataAnnotations;
  2. namespace CartWise.Web.ViewModels.Account;
  3. public class RegisterViewModel
  4. {
  5. [Required]
  6. [Display(Name = "Display name")]
  7. [StringLength(100, MinimumLength = 1)]
  8. public string DisplayName { get; set; } = string.Empty;
  9. [Required]
  10. [EmailAddress]
  11. public string Email { get; set; } = string.Empty;
  12. [Required]
  13. [StringLength(100, MinimumLength = 8)]
  14. [DataType(DataType.Password)]
  15. public string Password { get; set; } = string.Empty;
  16. [Required]
  17. [DataType(DataType.Password)]
  18. [Display(Name = "Confirm password")]
  19. [Compare(nameof(Password), ErrorMessage = "The password and confirmation password do not match.")]
  20. public string ConfirmPassword { get; set; } = string.Empty;
  21. public string? ReturnUrl { get; set; }
  22. }

Powered by TurnKey Linux.