mirror of
https://gitlab.com/buildfeed/BuildFeed.git
synced 2024-03-22 21:10:34 +08:00
28 lines
946 B
C#
28 lines
946 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using BuildFeed.Local;
|
|
|
|
namespace BuildFeed.ViewModel
|
|
{
|
|
public class RegistrationUser
|
|
{
|
|
[Required]
|
|
[Display(ResourceType = typeof(VariantTerms), Name = nameof(VariantTerms.Support_UserName))]
|
|
public string UserName { get; set; }
|
|
|
|
[Required]
|
|
[EmailAddress]
|
|
[Display(ResourceType = typeof(VariantTerms), Name = nameof(VariantTerms.Support_EmailAddress))]
|
|
public string EmailAddress { get; set; }
|
|
|
|
[Required]
|
|
[MinLength(8)]
|
|
[Display(ResourceType = typeof(VariantTerms), Name = nameof(VariantTerms.Support_EnterPassword))]
|
|
public string Password { get; set; }
|
|
|
|
[Required]
|
|
[MinLength(8)]
|
|
[Display(ResourceType = typeof(VariantTerms), Name = nameof(VariantTerms.Support_ConfirmPassword))]
|
|
[Compare(nameof(Password))]
|
|
public string ConfirmPassword { get; set; }
|
|
}
|
|
} |