Software /
code /
prosody
Comparison
util/sasl/plain.lua @ 2314:c2e1bde4d84d
Redo merge with Waqas' PBKDF2 optimizations.
author | Tobias Markmann <tm@ayena.de> |
---|---|
date | Thu, 03 Dec 2009 21:57:47 +0100 |
parent | 2290:ef7027a0f0c9 |
child | 2991:0fa3a7c885bd |
comparison
equal
deleted
inserted
replaced
2312:5ddbb9c89ffe | 2314:c2e1bde4d84d |
---|---|
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 |