BuildFeed/BuildFeed.Model/View/RegistrationUser.cs

28 lines
947 B
C#
Raw Normal View History

using System.ComponentModel.DataAnnotations;
2015-07-27 16:34:32 +08:00
using BuildFeed.Local;
2014-10-11 06:57:02 +08:00
namespace BuildFeed.Model.View
2014-10-11 06:57:02 +08:00
{
2017-02-24 04:53:49 +08:00
public class RegistrationUser
{
[Required]
[Display(ResourceType = typeof(VariantTerms), Name = nameof(VariantTerms.Support_UserName))]
public string UserName { get; set; }
2014-10-11 06:57:02 +08:00
2017-02-24 04:53:49 +08:00
[Required]
[EmailAddress]
[Display(ResourceType = typeof(VariantTerms), Name = nameof(VariantTerms.Support_EmailAddress))]
public string EmailAddress { get; set; }
2014-10-11 06:57:02 +08:00
2017-02-24 04:53:49 +08:00
[Required]
[MinLength(8)]
[Display(ResourceType = typeof(VariantTerms), Name = nameof(VariantTerms.Support_EnterPassword))]
public string Password { get; set; }
2014-10-11 06:57:02 +08:00
2017-02-24 04:53:49 +08:00
[Required]
[MinLength(8)]
[Display(ResourceType = typeof(VariantTerms), Name = nameof(VariantTerms.Support_ConfirmPassword))]
[Compare(nameof(Password))]
public string ConfirmPassword { get; set; }
}
}