2
I need to authenticate users.
So I created my database with all my business rules, connected to the ASP.NET MVC application, and started programming.
Now, when I went to do the login user realized that there are two connections, one call DefaultConnection
and my of SQLServer
.
The question is: how to change ASP.NET Identity so I can only use the connection to my local database?
I didn’t understand how this first option would work.
– user46439
You have to study the Controllers from the part where Identity is used and get the same information from your database. For example the Login or Register Controllers, instead of fetching the user and the password from Identity you have to fetch from your BD.
– Paulo Lima
Thank you! I think I understand how it’s done. I used the Identity model as a Viewmodel and in my Controller I received it from the model and saved it in my database.
– user46439