change default match on basic auth to host (#1397)

This commit is contained in:
Kyle Spearrin 2020-09-21 10:21:09 -04:00 committed by GitHub
parent bf967089d1
commit 5ec2a70027
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

2
jslib

@ -1 +1 @@
Subproject commit 0a20face13a0cf57c25fbd44840378cc0d0afc02
Subproject commit 3bf322a904cd7ccb8c7e77edbecf8e152feb7364

View File

@ -2,6 +2,8 @@ import { CipherService } from 'jslib/abstractions/cipher.service';
import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
import { VaultTimeoutService } from 'jslib/abstractions/vaultTimeout.service';
import { UriMatchType } from 'jslib/enums';
export default class WebRequestBackground {
private pendingAuthRequests: any[] = [];
private webRequest: any;
@ -50,7 +52,7 @@ export default class WebRequestBackground {
}
try {
const ciphers = await this.cipherService.getAllDecryptedForUrl(domain);
const ciphers = await this.cipherService.getAllDecryptedForUrl(domain, null, UriMatchType.Host);
if (ciphers == null || ciphers.length !== 1) {
error();
return;