示例#1
0
        public async Task <bool> HasPasswordAsync(UserDTO user, CancellationToken cancellationToken)
        {
            var userEntity = new UserEntity(user.Id, user.FirstName, user.LastName, user.Email, user.NormalizedEmail, user.EmailConfirmed, user.PasswordHash, user.BirthDate, user.RegistrationDate);

            return(await _userIdentity.HasPasswordAsync(userEntity, cancellationToken));
        }