Last post May 03, 2020 01:37 PM by emirryhn
May 03, 2020 07:11 AM|emirryhn|LINK
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
public IActionResult Login()
public async Task<IActionResult> Login(DDACWebApp.Pages.LoginModel model)
var result = await signInManager.PasswordSignInAsync(account.Email, account.Password, false);
return RedirectToAction("index", "home");
ModelState.AddModelError(string.Empty, "Invalid Login attempt");
Please let me know if I may have put blunder or lack of statement. Thank you
May 03, 2020 10:22 AM|mgebhard|LINK
var result = await signInManager.PasswordSignInAsync(account.Email, account.Password, false, false);
Also, it is very helpful to read the openly published reference documentation when you do not know how to use a method.
May 03, 2020 01:37 PM|emirryhn|LINK
Hi mgebhard, Thank you for your response! it works now. And thank you for your tip, i'm quite new with Visual Studio and C#.