Software /
code /
prosody
Comparison
util/sasl/plain.lua @ 2294:90e4941ea8b6
Merge with Tobias
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 02 Dec 2009 20:33:09 +0000 |
parent | 2290:ef7027a0f0c9 |
child | 2314:c2e1bde4d84d |
comparison
equal
deleted
inserted
replaced
2278:8c10f13c0c20 | 2294:90e4941ea8b6 |
---|---|
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 |