= null) // if it is not null, that's to say the user exists or the user doesn't exist { // create ClaimsIdentity ClaimsIdentity ident = UserManager.CreateIdentity(user, DefaultAuthenticationTypes.ApplicationCookie); // first logout AuthManager.SignOut(); // then make the user login ...
= null) // if it is not null, that's to say the user exists or the user doesn't exist { // create ClaimsIdentity ClaimsIdentity ident = UserManager.CreateIdentity(user, DefaultAuthenticationTypes.ApplicationCookie); // first logo...