Last post Dec 28, 2018 10:20 AM by SteinTheRuler
Dec 28, 2018 07:37 AM|SteinTheRuler|LINK
I'm trying to implement Identity, but can't get pass the sign in.
The user signs in and gets Succeded from the result, but when I try User.Identity.IsAuthenticated I get false..?
var tmp = await this.SignInManager.PasswordSignInAsync(email, password, false, false);
Dec 28, 2018 10:19 AM|Sherry Chen|LINK
Hi SteinTheRuler ,
Your question is not clear , where is User.Identity.IsAuthenticated used ?
I made a test with code below:
public IActionResult About()
ViewData["Message"] = "Your application description page.";
var a = User.Identity.IsAuthenticated;
After signing in ,the User.Identity.IsAuthenticated is true when invoking About() like below
Best Regards ,
Dec 28, 2018 10:20 AM|SteinTheRuler|LINK
it turned out the problem was that I called UseAuthentication after UseMVC. I changed the order and everything worked