public async Task <SignInResult> SignIn(User user, string password, bool remember) { var hash = _security.Criptography(password); var signInResult = await _signInManager.PasswordSignInAsync(user, hash, remember, true); if (signInResult.Succeeded) { RegisterLog(LogType.Event, user, user, "O usuário logou no sistema"); } return(signInResult); }