From 07ca2fa20e3cc2781c6a1e74f1800065372b2b7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20Rameau?= Date: Sat, 22 Oct 2005 22:11:05 +0000 Subject: Add a way to view stored password. Fix bug 316821. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2005-10-22 Jean-François Rameau * embed/mozilla/mozilla-embed-single.cpp: (impl_list_passwords): * src/pdm-dialog.c: * data/glade/epiphany.glade: Add a way to view stored password. Fix bug 316821. --- embed/mozilla/mozilla-embed-single.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'embed') diff --git a/embed/mozilla/mozilla-embed-single.cpp b/embed/mozilla/mozilla-embed-single.cpp index da5272b96..2c1ac191a 100644 --- a/embed/mozilla/mozilla-embed-single.cpp +++ b/embed/mozilla/mozilla-embed-single.cpp @@ -810,11 +810,18 @@ impl_list_passwords (EphyPasswordManager *manager) NS_UTF16ToCString (unicodeName, NS_CSTRING_ENCODING_UTF8, userName); + rv = nsPassword->GetPassword (unicodeName); + if (NS_FAILED (rv)) continue; + + nsEmbedCString userPassword; + NS_UTF16ToCString (unicodeName, + NS_CSTRING_ENCODING_UTF8, userPassword); + EphyPasswordInfo *p = g_new0 (EphyPasswordInfo, 1); p->host = g_strdup (host.get()); p->username = g_strdup (userName.get()); - p->password = NULL; + p->password = g_strdup (userPassword.get()); passwords = g_list_prepend (passwords, p); } -- cgit v1.2.3