[epiphany/gnome-3-28] Don't offer to remember passwords when setting is disabled



commit 52be3ddbc0c3cac9f692b2b918df20f2665882b7
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Fri May 25 09:25:06 2018 -0500

    Don't offer to remember passwords when setting is disabled
    
    https://bugzilla.gnome.org/show_bug.cgi?id=796219

 embed/web-extension/ephy-web-extension.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/embed/web-extension/ephy-web-extension.c b/embed/web-extension/ephy-web-extension.c
index 018c989..359d942 100644
--- a/embed/web-extension/ephy-web-extension.c
+++ b/embed/web-extension/ephy-web-extension.c
@@ -345,6 +345,9 @@ should_store_cb (GList    *records,
   const char *password;
   char *origin = NULL;
 
+  if (!g_settings_get_boolean (EPHY_SETTINGS_WEB, EPHY_PREFS_WEB_REMEMBER_PASSWORDS))
+    return;
+
   uri = ephy_embed_form_auth_get_uri (form_auth);
   uri_string = soup_uri_to_string (uri, FALSE);
   if (uri_string == NULL)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]