using ErsatzTV.Core.Domain; using ErsatzTV.Core.Interfaces.Repositories; namespace ErsatzTV.Application.Auth; public class IsLocalAdminConfiguredHandler(IConfigElementRepository configElementRepository) : IRequestHandler { public async Task Handle(IsLocalAdminConfigured request, CancellationToken cancellationToken) { Option hash = await configElementRepository.GetConfigElement(ConfigElementKey.AuthLocalAdminPasswordHash, cancellationToken); return hash.IsSome; } }