Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

how to overcome overload method taking 3 arguments

$
0
0

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


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>