Only send auth_text
if it's not None (sasl)
This commit is contained in:
parent
be95514174
commit
0e63700761
1 changed files with 5 additions and 4 deletions
|
@ -89,10 +89,11 @@ class Module(ModuleManager.BaseModule):
|
|||
else:
|
||||
raise ValueError("unknown sasl mechanism '%s'" % mechanism)
|
||||
|
||||
if not auth_text == "+":
|
||||
auth_text = base64.b64encode(auth_text)
|
||||
auth_text = auth_text.decode("utf8")
|
||||
event["server"].send_authenticate(auth_text)
|
||||
if not auth_text == None:
|
||||
if not auth_text == "+":
|
||||
auth_text = base64.b64encode(auth_text)
|
||||
auth_text = auth_text.decode("utf8")
|
||||
event["server"].send_authenticate(auth_text)
|
||||
|
||||
def _end_sasl(self, server):
|
||||
server.capability_done("sasl")
|
||||
|
|
Loading…
Reference in a new issue