Mark Tabor

Mark Tabor

  • 931
  • 1.7k
  • 312.8k

Asp.NET identity signin method returns invalid login all the time

Jan 28 2022 7:46 PM

I have integrated identity into my mvc application I have created a custom class for signup records to asp.netuser table it works fine signup, but on sign in with below line i am getting error 

 var result = await SignInManager.PasswordSignInAsync(model.Email, model.Password, model.RememberMe, shouldLockout: false);

                    ModelState.AddModelError("", "Invalid login attempt.");
                    return View(model);


this is return all the time even though my email and password are right 

Answers (2)