How to add Account to the Asp.Net Core project

Asked

Viewed 53 times

2

I’m new to Asp.net core mvc and I’m having a hard time, I have a project that in visual studio I have a solution for 4 different projects. Let’s just say it’s Project A and Project B. Project A would be the company’s old website and Project B would be a new system, by default in Project A came the Account configuration as shown below.

inserir a descrição da imagem aqui

Already the project B did not come Account according to the image.

inserir a descrição da imagem aqui

How can I use Account for my new project(B)?

NOTE: This project A would be deleted in the future.

1 answer

5


In Project B, you are using the newer version of ASP.NET Core Identity that already brings the authentication part up and running, and so you can customize according to your needs, but in a different way than we were used to in the previous version.

You can specify at the time of project creation, or add later.

Upon project creation, you must click "Change Authentication" and select "Individual User Accounts".

Criação do projeto

Then you click on top of your project and go Add -> New Scaffolded Item -> Select Identity and click and click Identity.

inserir a descrição da imagem aqui

I suggest you read the official documentation of ASP.NET Core Identity, there are several courses addressing the subject on the internet.

  • Samuel Perfect Explanation Thank You Very Much.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.