[epiphany/mcatanzaro/password-manager-fixes: 1/2] Use username when retrieving passwords from password manager
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/mcatanzaro/password-manager-fixes: 1/2] Use username when retrieving passwords from password manager
- Date: Fri, 17 Sep 2021 16:56:14 +0000 (UTC)
commit 6b2cf5efeb6222ddb17b3c19860c6903d794d75d
Author: Michael Catanzaro <mcatanzaro redhat com>
Date: Fri Sep 17 11:13:03 2021 -0500
Use username when retrieving passwords from password manager
Looking up passwords is a two-step process:
* Look up available usernames for the domain
* Look up passwords for the username (for the domain)
Currently if there is exactly one available username, we throw it away
rather than passing it along. Oops!
embed/web-process-extension/resources/js/ephy.js | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/embed/web-process-extension/resources/js/ephy.js
b/embed/web-process-extension/resources/js/ephy.js
index 5cc68a4be..083b4c620 100644
--- a/embed/web-process-extension/resources/js/ephy.js
+++ b/embed/web-process-extension/resources/js/ephy.js
@@ -493,6 +493,8 @@ Ephy.FormManager = class FormManager
if (users.length > 1) {
Ephy.log('More than one saved username, hooking menu for choosing which one to select');
this._preFillUserMenu = new Ephy.PreFillUserMenu(this, formAuth, users);
+ } else if (users.length == 1) {
+ formAuth.username = users[0];
}
this.preFill(formAuth);
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]