BuildFeed/BuildFeed.Model/View/RegistrationUser.cs

28 lines
912 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
{
public class RegistrationUser
{
[Required]
2016-08-19 20:45:52 +08:00
[Display(ResourceType = typeof(VariantTerms), Name = nameof(VariantTerms.Support_UserName))]
public string UserName { get; set; }
2014-10-11 06:57:02 +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
[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
[Required]
2016-08-19 20:45:52 +08:00
[MinLength(8)]
[Display(ResourceType = typeof(VariantTerms), Name = nameof(VariantTerms.Support_ConfirmPassword))]
[Compare(nameof(Password))]
public string ConfirmPassword { get; set; }
}
}