Can't login using .Net Core Identinty and EF

Ronald Rex 1,666 Reputation points
2021-11-05T17:02:07.15+00:00

I just began building a .Net Core application using Identity and EF. I was wondering is it common to get the message "Invalid login attempt." when you login? Thanks !!!

Microsoft Identity Manager
Microsoft Identity Manager
A family of Microsoft products that manage a user's digital identity using identity synchronization, certificate management, and user provisioning.
622 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
698 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,212 questions
0 comments No comments
{count} votes

Accepted answer
  1. Zhi Lv - MSFT 32,021 Reputation points Microsoft Vendor
    2021-11-08T02:22:11.05+00:00

    Hi @Ronald Rex ,

    Do you mean you create a new asp.net core application with Individual Accounts Authentication Type, and then meet the error when you login?

    If that is the case, when you register the account. have you ever confirmed your account? Generally, there should have a confirm page or a confirm email (if you configured) to confirm the account. After that we could login using the account.

    You can also use SQL Server Management Studio (SSMS) to connect the database, and check the AspNetUsers table, there have a EmailConfirmed column, if the account's emailconfirmed property is False, you can update it to True, then re-login.

    147119-image.png

    If the issue does not relate the above, please share the details steps or create a simple sample to reproduce the problem.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best Regards,
    Dillion

    4 people found this answer helpful.

0 additional answers

Sort by: Most helpful