From f4ed6a5566b49e1a7175d931408bbe14e4dc0af7 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 18 Jul 2018 15:09:13 -0400 Subject: [PATCH] regular fetch for password check --- src/services/audit.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/audit.service.ts b/src/services/audit.service.ts index 9b7b605765..057be1646e 100644 --- a/src/services/audit.service.ts +++ b/src/services/audit.service.ts @@ -18,7 +18,7 @@ export class AuditService implements AuditServiceAbstraction { const hashStart = hash.substr(0, 5); const hashEnding = hash.substr(5); - const response = await this.apiService.fetch(new Request(PwnedPasswordsApi + hashStart)); + const response = await fetch(new Request(PwnedPasswordsApi + hashStart)); const leakedHashes = await response.text(); const match = leakedHashes.split(/\r?\n/).find((v) => { return v.split(':')[0] === hashEnding;