ASP.NET Identity Provider SignInManager Keeps Returning Failure

后端 未结 10 1657
天涯浪人
天涯浪人 2021-01-31 15:52

I have an issue with the standard ASP Identity provider for MVC5. As soon as I log in the method:

await SignInManager.PasswordSignInAsync(model.Email, model.Pass         


        
10条回答
  •  臣服心动
    2021-01-31 16:26

    In your startup check:

    options.SignIn.RequireConfirmedEmail = false;
    options.SignIn.RequireConfirmedPhoneNumber = false;
    

    If these are set to true, you need to confirm the email or phone number before you can login.

提交回复
热议问题