Last active
November 4, 2020 09:25
-
-
Save LazZiya/aace04a8a7aa51efd929454453121267 to your computer and use it in GitHub Desktop.
Asp.Net Core XLocalizer sample localized input model of registration page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class InputModel | |
{ | |
[Required] | |
[EmailAddress] | |
[Display(Name = "Email")] | |
public string Email { get; set; } | |
[Required] | |
[StringLength(100, MinimumLength = 6)] | |
[DataType(DataType.Password)] | |
[Display(Name = "Password")] | |
public string Password { get; set; } | |
[DataType(DataType.Password)] | |
[Display(Name = "Confirm password")] | |
[Compare("Password")] | |
public string ConfirmPassword { get; set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment