namespace DigitalData.Auth.API.Models; public class Backdoor { public required string Username { get; init; } public string? Password { get; init; } public string? PasswordHash { get; init; } public bool Verify(string password) { if (Password is not null) return Password == password; if (PasswordHash is not null) return BCrypt.Net.BCrypt.Verify(password, PasswordHash); return false; } }