reorg
This commit is contained in:
parent
d000f77098
commit
40e8e08690
3487 changed files with 39 additions and 21 deletions
|
|
@ -1,35 +0,0 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using Yavsc.Attributes.Validation;
|
||||
using Yavsc.Abstract;
|
||||
using Yavsc;
|
||||
|
||||
namespace Yavsc.ViewModels.Account
|
||||
{
|
||||
public class RegisterModel
|
||||
{
|
||||
|
||||
[StringLength(Constants.MaxUserNameLength)]
|
||||
[RegularExpression(Constants.UserNameRegExp)]
|
||||
[DataType(DataType.Text)]
|
||||
[Display(Name = "UserName", Description = "User name")]
|
||||
public string UserName { get; set; }
|
||||
|
||||
[Required()]
|
||||
[StringLength( maximumLength:102, MinimumLength = 5)]
|
||||
// [EmailAddress]
|
||||
[Display(Name = "Email", Description = "E-Mail")]
|
||||
public string Email { get; set; }
|
||||
|
||||
[StringLength(maximumLength:100, MinimumLength = 6,
|
||||
ErrorMessage = "Le mot de passe doit contenir au moins 8 caratères")]
|
||||
[DataType(DataType.Password)]
|
||||
[Display(Name = "Password")]
|
||||
public string Password { get; set; }
|
||||
|
||||
[DataType(DataType.Password)]
|
||||
[Compare("Password")]
|
||||
[Display(Name = "ConfirmPassword", Description ="Password Confirmation")]
|
||||
public string ConfirmPassword { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue