This commit is contained in:
Paul Schneider 2019-10-08 23:41:19 +01:00
commit fa8e032d21
18 changed files with 102 additions and 80 deletions

View file

@ -1,33 +0,0 @@
using System.ComponentModel.DataAnnotations;
using Yavsc.Attributes.Validation;
namespace Yavsc.ViewModels.Account
{
using Yavsc;
public class RegisterViewModel
{
[YaStringLength(2,Constants.MaxUserNameLength)]
[YaRegularExpression(Constants.UserNameRegExp)]
public string UserName { get; set; }
[YaRequired()]
[YaStringLength(2,102)]
// [EmailAddress]
[Display(Name = "Email")]
public string Email { get; set; }
[YaStringLength(6,100)]
[DataType(DataType.Password)]
// ErrorMessage = "Les mots de passe doivent contenir au moins un caractère spécial, qui ne soit ni une lettre ni un chiffre.")]
public string Password { get; set; }
[DataType(DataType.Password)]
[Compare("Password")]
public string ConfirmPassword { get; set; }
}
}