[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: Tue, 21 Sep 2021 15:07:09 +0000 (UTC)
commit ba957c9064471cbb036e0ede942ae6bac498c82f
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..38b806f7a 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]