From ce9dce8e4a740c3b97f7acf6e3092bfaf218a46b Mon Sep 17 00:00:00 2001 From: voommen-livefront Date: Fri, 10 Oct 2025 09:02:34 -0500 Subject: [PATCH] PM-17577 added a check to the host name in addition to the domain name --- .../pages/inactive-two-factor-report.component.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/apps/web/src/app/dirt/reports/pages/inactive-two-factor-report.component.ts b/apps/web/src/app/dirt/reports/pages/inactive-two-factor-report.component.ts index 0024af35109..8e7949f2597 100644 --- a/apps/web/src/app/dirt/reports/pages/inactive-two-factor-report.component.ts +++ b/apps/web/src/app/dirt/reports/pages/inactive-two-factor-report.component.ts @@ -107,7 +107,18 @@ export class InactiveTwoFactorReportComponent extends CipherReportComponent impl const u = login.uris[i]; if (u.uri != null && u.uri !== "") { const uri = u.uri.replace("www.", ""); + const host = Utils.getHost(uri); const domain = Utils.getDomain(uri); + // check host first + if (host != null && this.services.has(host)) { + if (this.services.get(host) != null) { + docFor2fa = this.services.get(host) || ""; + } + isInactive2faCipher = true; + break; + } + + // then check domain if (domain != null && this.services.has(domain)) { if (this.services.get(domain) != null) { docFor2fa = this.services.get(domain) || "";