private SignInAsync ( |
||
user | ||
isPersistent | bool | |
Résultat | System.Threading.Tasks.Task |
private async Task SignInAsync(BlogUser user, bool isPersistent)
{
AuthenticationManager.SignOut(DefaultAuthenticationTypes.ExternalCookie);
AuthenticationManager.SignIn(new AuthenticationProperties { IsPersistent = isPersistent }, await user.GenerateUserIdentityAsync(UserManager));
}