From 4ebbefa18181c821fe929f9b07496532f60cc3ae Mon Sep 17 00:00:00 2001 From: Jens Spanier <42373861+Virinum@users.noreply.github.com> Date: Thu, 25 Feb 2021 17:25:48 +0100 Subject: [PATCH] Use v2 of 2fa.directory API (#849) --- src/app/tools/inactive-two-factor-report.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/tools/inactive-two-factor-report.component.ts b/src/app/tools/inactive-two-factor-report.component.ts index 2f88c15661b..ca794ce9aba 100644 --- a/src/app/tools/inactive-two-factor-report.component.ts +++ b/src/app/tools/inactive-two-factor-report.component.ts @@ -77,7 +77,7 @@ export class InactiveTwoFactorReportComponent extends CipherReportComponent impl if (this.services.size > 0) { return; } - const response = await fetch(new Request('https://2fa.directory/api/v1/data.json')); + const response = await fetch(new Request('https://2fa.directory/api/v2/totp.json')); if (response.status !== 200) { throw new Error(); } @@ -88,7 +88,7 @@ export class InactiveTwoFactorReportComponent extends CipherReportComponent impl for (const serviceName in category) { if (category.hasOwnProperty(serviceName)) { const service = category[serviceName]; - if (service.tfa && service.software && service.url != null) { + if (service.url != null) { const hostname = Utils.getHostname(service.url); if (hostname != null) { this.services.set(hostname, service.doc);