1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-08 20:50:28 +00:00

PM-17577 added a check to the host name in addition to the domain name

This commit is contained in:
voommen-livefront
2025-10-10 09:02:34 -05:00
parent 7e921c2ec9
commit ce9dce8e4a

View File

@@ -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) || "";