Asp.net core MVC login and registration using identity

Asp.net core MVC login and registration using identity

In this post, Additionally, we are learn about different identity options that could help us in a process. User registration is a process of registering users in our application by saving their credentials in the database. So, in this article, we are going to learn how to implement user registration actions in our project.

public class UserRegistrationModel
{
    public string FirstName { get; set; }
    public string LastName { get; set; }
    [Required(ErrorMessage = "Email is required")]
    [EmailAddress]
    public string Email { get; set; }
 
[DataType(DataType.Password)]
    [Compare("Password", ErrorMessage = "The password and confirmation password do not match.")]
    public string ConfirmPassword { get; set; }

    [Required(ErrorMessage = "Password is required")]
    [DataType(DataType.Password)]
    public string Password { get; set; }    
}

2020-03-31