Exemplo n.º 1
0
        public async Task <bool> GetUserByEmailAndCheckCredentialsAsync(ICredentials credentials)
        {
            var user = await _applicationUserRepository.SearchFirstAsync(u => u.Email == credentials.Email);

            return(await _applicationUserRepository.CheckPasswordAsync(user, credentials.PasswordHash));
        }