Localization

This commit is contained in:
Paul Schneider 2019-06-21 09:20:13 +01:00
commit 313ba449e7
29 changed files with 1140 additions and 65 deletions

View file

@ -7,16 +7,17 @@ namespace Yavsc.ViewModels.Account
public class RegisterViewModel
{
[StringLength(102)]
[YaStringLength(2,Constants.MaxUserNameLength)]
[YaRegularExpression(Constants.UserNameRegExp)]
public string UserName { get; set; }
[Required()]
[YaStringLength(2,102)]
// [EmailAddress]
[Display(Name = "Email")]
public string Email { get; set; }
[StringLength(100, MinimumLength = 6)]
[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.")]