I am following the tutorial on docs.microsoft.com (Authentication, ASP.NET Core 6.0).
I create ASP.NET Core Web App with individual user accounts and update a database. So far everything works. Then I scaffold the identity.
Then I Scaffold Register, Login, LogOut, and RegisterConfirmation according to the tutorial. Here I select "Login", "Logout" etc., select ApplicationDbContext as Data Context Class and click add.
The problem is that in program.cs it generates additional connection string (so there are two of them), as well as dublicates of builder.Services.AddDbContext...
and builder.Services.AddDefaultIdentity...
Everything works fine if I delete (comment out) this newly generated lines but I do not know what am I doing wrong.