aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-keyring.c
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.co.uk>2012-08-24 16:14:43 +0800
committerXavier Claessens <xavier.claessens@collabora.co.uk>2012-08-27 21:47:21 +0800
commit4f0673c142e6529b6aaa0022b8463fa67b2ff060 (patch)
treed255f4248eda4e03238f904cc548640c62f146df /libempathy/empathy-keyring.c
parent4ef8dd58943034270f935f081e290e7540a792f9 (diff)
downloadgsoc2013-empathy-4f0673c142e6529b6aaa0022b8463fa67b2ff060.tar
gsoc2013-empathy-4f0673c142e6529b6aaa0022b8463fa67b2ff060.tar.gz
gsoc2013-empathy-4f0673c142e6529b6aaa0022b8463fa67b2ff060.tar.bz2
gsoc2013-empathy-4f0673c142e6529b6aaa0022b8463fa67b2ff060.tar.lz
gsoc2013-empathy-4f0673c142e6529b6aaa0022b8463fa67b2ff060.tar.xz
gsoc2013-empathy-4f0673c142e6529b6aaa0022b8463fa67b2ff060.tar.zst
gsoc2013-empathy-4f0673c142e6529b6aaa0022b8463fa67b2ff060.zip
Remember password at least until session restart
https://bugzilla.gnome.org/show_bug.cgi?id=680776
Diffstat (limited to 'libempathy/empathy-keyring.c')
-rw-r--r--libempathy/empathy-keyring.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libempathy/empathy-keyring.c b/libempathy/empathy-keyring.c
index 5b69cc25c..f9ca47606 100644
--- a/libempathy/empathy-keyring.c
+++ b/libempathy/empathy-keyring.c
@@ -181,6 +181,7 @@ store_password_cb (GObject *source,
void
empathy_keyring_set_account_password_async (TpAccount *account,
const gchar *password,
+ gboolean remember,
GAsyncReadyCallback callback,
gpointer user_data)
{
@@ -202,7 +203,9 @@ empathy_keyring_set_account_password_async (TpAccount *account,
name = g_strdup_printf (_("IM account password for %s (%s)"),
tp_account_get_display_name (account), account_id);
- secret_password_store (&account_keyring_schema, NULL, name, password,
+ secret_password_store (&account_keyring_schema,
+ remember ? NULL : SECRET_COLLECTION_SESSION,
+ name, password,
NULL, store_password_cb, simple,
"account-id", account_id,
"param-name", "password",