Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hörist <forenjunkie@chello.at>2017-10-16 18:12:40 +0300
committerPhilipp Hörist <forenjunkie@chello.at>2017-10-16 18:12:40 +0300
commit7a98ebac4819e170a87c34fc338744a136c9fe73 (patch)
tree6c0f3b2c53ecd474cad4765c2df532f0a6e4ff02
parent1886fda5c30d6e0b26705daa592096a961f1ac31 (diff)
Correctly pass authentication mechs to nbxmpp
-rw-r--r--src/common/connection.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/connection.py b/src/common/connection.py
index b1d7d8e14..7c41d465b 100644
--- a/src/common/connection.py
+++ b/src/common/connection.py
@@ -1512,6 +1512,8 @@ class Connection(CommonConnection, ConnectionHandlers):
log.warning("Unknown authentication mechanisms %s" % mech)
if len(auth_mechs) == 0:
auth_mechs = None
+ else:
+ auth_mechs = set(auth_mechs)
con.auth(user=name, password=self.password,
resource=self.server_resource, sasl=True, on_auth=self.__on_auth, auth_mechs=auth_mechs)