]> git.0d.be Git - empathy.git/commitdiff
server-sasl-handler: remove stored password if they can't be saved
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 17 Mar 2011 10:49:43 +0000 (11:49 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 17 Mar 2011 13:44:27 +0000 (14:44 +0100)
libempathy/empathy-server-sasl-handler.c

index d6c81a862d3ebffc775ae47011df755a56764db7..1583675bce5be2af4767b2a147b629c0cf935b84 100644 (file)
@@ -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,