auth_text would not be present in a failure scenario

This commit is contained in:
jesopo 2019-02-06 15:36:59 +00:00
parent cfa590eef7
commit be95514174

View file

@ -48,6 +48,7 @@ class Module(ModuleManager.BaseModule):
sasl = event["server"].get_setting("sasl")
mechanism = sasl["mechanism"].upper()
auth_text = None
if mechanism == "PLAIN":
if event["message"] != "+":
event["server"].send_authenticate("*")