aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-03-17 18:49:43 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-03-17 21:44:27 +0800
commit7f47a1b3053fdf5e07250f716b5c596f936b0302 (patch)
tree9a1d307c881cdd8b82d86d8341d07b9918a3f1cd /libempathy
parentca9d3b8180e49292724243090fd5394172fa24c9 (diff)
downloadgsoc2013-empathy-7f47a1b3053fdf5e07250f716b5c596f936b0302.tar
gsoc2013-empathy-7f47a1b3053fdf5e07250f716b5c596f936b0302.tar.gz
gsoc2013-empathy-7f47a1b3053fdf5e07250f716b5c596f936b0302.tar.bz2
gsoc2013-empathy-7f47a1b3053fdf5e07250f716b5c596f936b0302.tar.lz
gsoc2013-empathy-7f47a1b3053fdf5e07250f716b5c596f936b0302.tar.xz
gsoc2013-empathy-7f47a1b3053fdf5e07250f716b5c596f936b0302.tar.zst
gsoc2013-empathy-7f47a1b3053fdf5e07250f716b5c596f936b0302.zip
server-sasl-handler: remove stored password if they can't be saved
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-server-sasl-handler.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libempathy/empathy-server-sasl-handler.c b/libempathy/empathy-server-sasl-handler.c
index d6c81a862..1583675bc 100644
--- a/libempathy/empathy-server-sasl-handler.c
+++ b/libempathy/empathy-server-sasl-handler.c
@@ -448,6 +448,12 @@ empathy_server_sasl_handler_provide_password (
}
}
+ if (!may_save_response)
+ {
+ /* delete any password present, it shouldn't be there */
+ empathy_keyring_delete_account_password_async (priv->account, NULL, NULL);
+ }
+
/* Additionally, if we implement Ch.I.CredentialsStorage, inform that
* whether we want to remember the password */
if (tp_proxy_has_interface_by_id (priv->channel,