regular fetch for password check
This commit is contained in:
parent
257b1d7d7a
commit
f4ed6a5566
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue