From 0b88ba25bdd817665a35c8382636cb03e761467c Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 17 Mar 2011 11:49:43 +0100 Subject: server-sasl-handler: remove stored password if they can't be saved --- libempathy/empathy-server-sasl-handler.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libempathy/empathy-server-sasl-handler.c b/libempathy/empathy-server-sasl-handler.c index b35c18136..a92b2b220 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_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, -- cgit v1.2.3