Skip to content

Instantly share code, notes, and snippets.

@fmshk97
Created February 21, 2021 12:18
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 fmshk97/d9f5036e8ea8c38a90c17c21d4f14edc to your computer and use it in GitHub Desktop.
Save fmshk97/d9f5036e8ea8c38a90c17c21d4f14edc to your computer and use it in GitHub Desktop.
RegistrationInputModel.cs
namespace Authentication.Apis.Models
{
public class RegistrationInputModel
{
public string UserName { get; set; }
[DataType(DataType.EmailAddress)]
public string Email { get; set; }
[DataType(DataType.Password)]
public string Password { get; set; }
[Compare("Password")]
[DataType(DataType.Password)]
public string ConfirmPassword { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment