public static void SignIn(UserManager manager, ApplicationUser user, bool isPersistent)
{
IAuthenticationManager authenticationManager = HttpContext.Current.GetOwinContext().Authentication;
authenticationManager.SignOut(DefaultAuthenticationTypes.ExternalCookie);
var identity = manager.CreateIdentity(user, DefaultAuthenticationTypes.ApplicationCookie);
authenticationManager.SignIn(new AuthenticationProperties() { IsPersistent = isPersistent }, identity);
}
出錯定位 manager.CreateIdentity
錯誤提示: 現用語言不支持“Microsoft.AspNet.Identity.UserManagerExtensions.CreateIdentity<TUser>()”
新手求幫。。。
uj5u.com熱心網友回復:
沒人嗎?自己頂一下轉載請註明出處,本文鏈接:https://www.uj5u.com/net/56869.html
標籤:C#
