aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-auth-client.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/empathy-auth-client.c')
-rw-r--r--src/empathy-auth-client.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/empathy-auth-client.c b/src/empathy-auth-client.c
index f6cc9def8..98a736fb9 100644
--- a/src/empathy-auth-client.c
+++ b/src/empathy-auth-client.c
@@ -216,9 +216,12 @@ auth_factory_new_sasl_handler_cb (EmpathyAuthFactory *factory,
DEBUG ("New SASL server handler received from the factory");
- /* TODO: check whether to show the dialog */
- dialog = empathy_password_dialog_new (handler);
- gtk_widget_show (dialog);
+ /* If the handler has the password it will deal with it itself. */
+ if (!empathy_server_sasl_handler_has_password (handler))
+ {
+ dialog = empathy_password_dialog_new (handler);
+ gtk_widget_show (dialog);
+ }
}
int