[epiphany/gnome-40] Use username when retrieving passwords from password manager
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/gnome-40] Use username when retrieving passwords from password manager
- Date: Sat, 25 Sep 2021 20:23:05 +0000 (UTC)
commit 9afe2e594fde6772f95a0060aaf51c976380f962
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!
Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1014>
(cherry picked from commit b3b90a79f70f68811e74d876e1f7af2c70643485)
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]