generated from egmont11/ASP.Net-Core-MVC-Template
InitEshop+ddd+ca
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Eshop.Web.ViewModels;
|
||||
|
||||
public class AuthRegisterViewModel
|
||||
{
|
||||
[Required] [Display(Name = "Username")] [StringLength(50, MinimumLength = 3)]
|
||||
public string UserName { get; set; }
|
||||
|
||||
[Required] [EmailAddress] [Display(Name = "Email")]
|
||||
public string Email { get; set; }
|
||||
|
||||
[Required] [DataType(DataType.Password)] [Display(Name = "Password")]
|
||||
public string Password { get; set; }
|
||||
|
||||
[Display(Name = "Confirm password")]
|
||||
[Required] [DataType(DataType.Password)] [Compare("Password")]
|
||||
public string ConfirmPassword { get; set; }
|
||||
|
||||
public string? ReturnUrl { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user