1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 00:33:44 +00:00

auto-fill basic auth prompts

This commit is contained in:
Kyle Spearrin
2017-09-07 23:26:56 -04:00
parent 01e48377e9
commit 41c32f3874
4 changed files with 90 additions and 7 deletions

View File

@@ -228,13 +228,12 @@ function initAutofill() {
return;
}
self.loginService.getAllDecryptedForDomain(tabDomain).then(function (logins) {
if (!logins.length) {
self.loginService.getLastUsedForDomain(tabDomain).then(function (login) {
if (!login) {
return;
}
var sortedLogins = logins.sort(self.loginService.sortLoginsByLastUsed);
self.doAutoFill(sortedLogins[0], pageDetails, true, true, true);
self.doAutoFill(login, pageDetails, true, true, true);
});
});
};