Commit 7a98ebac authored by Philipp Hörist's avatar Philipp Hörist

Correctly pass authentication mechs to nbxmpp

parent 1886fda5
......@@ -1512,6 +1512,8 @@ def connection_accepted(self, con, con_type):
log.warning("Unknown authentication mechanisms %s" % mech)
if len(auth_mechs) == 0:
auth_mechs = None
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)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment