I tried your method. Now when I'm trying to login using username and password then FindByIdAsync method is getting called many times (more that 5-6 times). which is causing slow performance.
this is how I'm calling sign in method.
SignInStatus result =
await SignInManager.PasswordSignInAsync("Amit","123456", false, false);
And also it is hitting database for every single info (when It has already fetched user from db in FindByIdAsync). like
- GetPasswordHash
- HasPasswordAsync
I tried your method. Now when I'm trying to login using username and password then
FindByIdAsyncmethod is getting called many times (more that 5-6 times). which is causing slow performance.this is how I'm calling sign in method.
And also it is hitting database for every single info (when It has already fetched user from db in FindByIdAsync). like