question

RonaldRex-2335 avatar image
0 Votes"
RonaldRex-2335 asked ZhiLv-MSFT edited

Can't login using .Net Core Identinty and EF

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 !!!

dotnet-aspnet-core-generaldotnet-entity-framework-coremicrosoft-identity-manager
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ZhiLv-MSFT avatar image
1 Vote"
ZhiLv-MSFT answered ZhiLv-MSFT edited

Hi @RonaldRex-2335,

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


image.png (16.0 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Good Call. I wasnt paying attention and didnt see the confirm link after I entered my credentials. Thanks for your Answer.

0 Votes 0 ·