MVC User Registration & Login with ASP.NET Core Identity - CodAffection

14 thoughts on “MVC User Registration & Login with ASP.NET Core Identity”

  1. Everything works, except for the fact that “login-logout-tab” doesn’t seem to be a recognized bootstrap class. Did I miss something here?

    1. I added the following to site.css to make it look nice:
      /* CUSTOMIZATIONS */
      .card-header-tabs {
      margin-right:-1.325rem !important;
      margin-left:-1.325rem !important;
      margin-top:-0.825rem;
      }
      .nav-tabs .nav-item {
      margin-bottom: -1px;
      width: 50%;
      text-align: center;
      }
      .login-logout-tab .nav-link {
      font-weight:bold;
      font-size: 1.2em;
      text-decoration:none;
      color:#333;
      }
      .card-content {
      padding:20px 50px;
      }
      /* END CUSTOMIZATIONS */

  2. Hello, I just started learing .NET Core and this tutorial was of great help to me. I was wondering if there is a way to use custom tables instead of the identity default ones since I would like to connect to an existing database.
    Thanks and great work!

  3. Hi, thank you for the tutorial. I want to create login and registration functions using cookies (without JWT) in the ASP.Net core web API application in angular 11 with MongoDB. Can you please help me to start it? Because most of the tutorials are in JWT. Instead, I want to create a cookie when login.

  4. It would have been good if you include the user profile update part. I have tried to include first name and last name, but I have difficulty doing it.

  5. I am having issues with the Add ASP.NET Core Identity to Existing Project, in CreateHostBuilder(args).Build().Run();, it says System.InvalidOperationException: ‘Scheme already exists: Identity.Application’

  6. Can you create a tutorial on login and logout page without Identity, I don’t want to use Asp.net Tables. Also can you authenticate other controller, I mean once user logs in then only user can visit other pages

  7. i have a project which uses a Dbconnection .but when i was trying to include identity .I have a new Dbcontext and a class .but it shows a error like this:
    InvalidOperationException: The DbContextOptions passed to the DbContext constructor must be a DbContextOptions. When registering multiple DbContext types make sure that the constructor for each context type has a DbContextOptions parameter rather than a non-generic DbContextOptions parameter. please help me how to solve this

    1. You’ve multiple DbContext. One for Identity and one for the rest of the operations.
      Or there might be a problem while injecting DbContext.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top
50 Shares
50 Shares
Share via
Copy link