aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-server-sasl-handler.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-server-sasl-handler.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-server-sasl-handler.c')
-rw-r--r--libempathy/empathy-server-sasl-handler.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/libempathy/empathy-server-sasl-handler.c b/libempathy/empathy-server-sasl-handler.c
index 1518f3374..db7ba1be8 100644
--- a/libempathy/empathy-server-sasl-handler.c
+++ b/libempathy/empathy-server-sasl-handler.c
@@ -115,14 +115,10 @@ sasl_status_changed_cb (TpChannel *channel,
if (status == TP_SASL_STATUS_SERVER_SUCCEEDED)
{
- if (priv->save_password)
- {
- DEBUG ("Saving password in keyring");
-
- empathy_keyring_set_account_password_async (priv->account,
- priv->password, empathy_server_sasl_handler_set_password_cb,
- NULL);
- }
+ empathy_keyring_set_account_password_async (priv->account,
+ priv->password, priv->save_password,
+ empathy_server_sasl_handler_set_password_cb,
+ NULL);
DEBUG ("Calling AcceptSASL");
tp_cli_channel_interface_sasl_authentication_call_accept_sasl (