Skip to content

Instantly share code, notes, and snippets.

@LazZiya
Last active November 4, 2020 09:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LazZiya/aace04a8a7aa51efd929454453121267 to your computer and use it in GitHub Desktop.
Save LazZiya/aace04a8a7aa51efd929454453121267 to your computer and use it in GitHub Desktop.
Asp.Net Core XLocalizer sample localized input model of registration page
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