mirror of
https://gitlab.com/buildfeed/BuildFeed.git
synced 2024-03-22 21:10:34 +08:00
32 lines
775 B
C#
32 lines
775 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Linq;
|
|
using System.Web;
|
|
|
|
namespace BuildFeed.Models.ViewModel
|
|
{
|
|
public class RegistrationUser
|
|
{
|
|
[Required]
|
|
[DisplayName("Username")]
|
|
public string UserName { get; set; }
|
|
|
|
[Required]
|
|
[MinLength(12)]
|
|
[DisplayName("Enter password")]
|
|
public string Password { get; set; }
|
|
|
|
[Required]
|
|
[MinLength(12)]
|
|
[DisplayName("Confirm password")]
|
|
[Compare("Password")]
|
|
public string ConfirmPassword { get; set; }
|
|
|
|
[Required]
|
|
[EmailAddress]
|
|
[DisplayName("Email address")]
|
|
public string EmailAddress { get; set; }
|
|
}
|
|
} |