[libgda] GdaConfig: store password only if it has been defined



commit 07af6fb00c691b4848394ffd79fef1dc8ad1df3a
Author: Vivien Malerba <malerba gnome-db org>
Date:   Thu Aug 23 21:16:13 2012 +0200

    GdaConfig: store password only if it has been defined

 libgda/gda-config.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgda/gda-config.c b/libgda/gda-config.c
index 593ea50..9672865 100644
--- a/libgda/gda-config.c
+++ b/libgda/gda-config.c
@@ -1085,7 +1085,7 @@ gda_config_define_dsn (const GdaDsnInfo *info, GError **error)
 	}
 
 #ifdef HAVE_LIBSECRET
-	if (! info->is_system) {
+	if (! info->is_system && info->auth_string) {
 		/* save to keyring */
 		gchar *tmp;
 		tmp = g_strdup_printf (_("Authentication for the '%s' DSN"), info->name);
@@ -1117,7 +1117,7 @@ gda_config_define_dsn (const GdaDsnInfo *info, GError **error)
 	}
 #else
   #ifdef HAVE_GNOME_KEYRING
-	if (! info->is_system) {
+	if (! info->is_system && info->auth_string) {
 		/* save to keyring */
 		gchar *tmp;
 		tmp = g_strdup_printf (_("Authentication for the '%s' DSN"), info->name);



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