22 local function plain(self, message) |
22 local function plain(self, message) |
23 if not message then |
23 if not message then |
24 return "failure", "malformed-request"; |
24 return "failure", "malformed-request"; |
25 end |
25 end |
26 |
26 |
27 local authorization, authentication, password = s_match(message, "^([^%z]+)%z([^%z]+)%z([^%z]+)"); |
27 local authorization, authentication, password = s_match(message, "^([^%z]*)%z([^%z]+)%z([^%z]+)"); |
28 |
28 |
29 if not authorization then |
29 if not authorization then |
30 return "failure", "malformed-request"; |
30 return "failure", "malformed-request"; |
31 end |
31 end |
32 |
32 |