Software /
code /
prosody
Comparison
util/sasl/plain.lua @ 2269:9368ab10c1a8
util.sasl.plain: Allow empty authzid (thanks bjc).
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Tue, 01 Dec 2009 22:32:37 +0500 |
parent | 2263:ff881b857c98 |
child | 2290:ef7027a0f0c9 |
comparison
equal
deleted
inserted
replaced
2268:770a75623ed7 | 2269:9368ab10c1a8 |
---|---|
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 |