跟进
this问题后,缺少SignOut()和SignIn()方法的引用:
private async Task SignInAsync(User user,bool isPersistent) { AuthenticationManager.SignOut(DefaultAuthenticationTypes.ExternalCookie); var identity = await UserManager.CreateIdentityAsync(user,DefaultAuthenticationTypes.ApplicationCookie); AuthenticationManager.SignIn(new AuthenticationProperties() { IsPersistent = isPersistent },identity); }
有人知道如何解决它吗?