[gnome-online-accounts] daemon: Don't fail AddAccount if the credentials could not be stored



commit 5813f5c2c3c8127479668e0cbd456a5e57fe8555
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon Jun 25 13:39:11 2012 +0200

    daemon: Don't fail AddAccount if the credentials could not be stored
    
    Fixes: https://bugzilla.gnome.org/674165

 src/daemon/goadaemon.c |   17 ++++++++---------
 1 files changed, 8 insertions(+), 9 deletions(-)
---
diff --git a/src/daemon/goadaemon.c b/src/daemon/goadaemon.c
index e1098ed..c20ebe9 100644
--- a/src/daemon/goadaemon.c
+++ b/src/daemon/goadaemon.c
@@ -814,15 +814,14 @@ on_manager_handle_add_account (GoaManager             *manager,
       goto out;
     }
 
-  if (!goa_utils_store_credentials_for_id_sync (provider,
-                                                id,
-                                                credentials,
-                                                NULL, /* GCancellable */
-                                                &error))
-    {
-      g_dbus_method_invocation_return_gerror (invocation, error);
-      goto out;
-    }
+  /* We don't want to fail AddAccount if we could not store the
+   * credentials in the keyring.
+   */
+  goa_utils_store_credentials_for_id_sync (provider,
+                                           id,
+                                           credentials,
+                                           NULL, /* GCancellable */
+                                           NULL);
 
   goa_daemon_reload_configuration (daemon);
 



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