Hi, I'm having issue while using "PasswordSignInAsync" during login process. Error message shows CS1501 No overload for method "PasswordSignInAsync" takes 3 arguments.
my login.cshtml.cs login code
[HttpGet]
public IActionResult Login()
{
return Page();
}
[HttpPost]
public async Task<IActionResult> Login(DDACWebApp.Pages.LoginModel model)
{
if (ModelState.IsValid)
{
var result = await signInManager.PasswordSignInAsync(account.Email, account.Password, false);
if (result.Succeeded)
{
return RedirectToAction("index", "home");
}
ModelState.AddModelError(string.Empty, "Invalid Login attempt");
}
return Page();
}
Please let me know if I may have put blunder or lack of statement. Thank you