Пример #1
0
        public async Task <bool> AuthenticateUserAsync(AuthenticateAdminUserDto dto)
        {
            var adminUser = await _adminUserRepository.GetAdminUserByUsernameAsync(dto.Username);

            if (adminUser is null)
            {
                return(false);
            }

            return(Crypto.VerifyHashedPassword(adminUser.Password, dto.Password));
        }