Software /
code /
prosody-modules
Comparison
mod_auth_dovecot/auth_dovecot/sasl_dovecot.lib.lua @ 1343:7dbde05b48a9
all the things: Remove trailing whitespace
author | Florian Zeitz <florob@babelmonkeys.de> |
---|---|
date | Tue, 11 Mar 2014 18:44:01 +0100 |
parent | 1325:b21236b6b8d8 |
child | 1372:a573d64968e9 |
comparison
equal
deleted
inserted
replaced
1342:0ae065453dc9 | 1343:7dbde05b48a9 |
---|---|
254 elseif handle_domain == "escape" then | 254 elseif handle_domain == "escape" then |
255 self.username = nodeprep(jid_escape(data.user)); | 255 self.username = nodeprep(jid_escape(data.user)); |
256 else | 256 else |
257 self.username = nodeprep(data.user); | 257 self.username = nodeprep(data.user); |
258 end | 258 end |
259 if not self.username then | 259 if not self.username then |
260 return "failure", "not-authorized", "Username failed NODEprep" | 260 return "failure", "not-authorized", "Username failed NODEprep" |
261 end | 261 end |
262 end | 262 end |
263 | 263 |
264 if resp == "FAIL" then | 264 if resp == "FAIL" then |
270 return "failure", "not-authorized", data.reason; | 270 return "failure", "not-authorized", data.reason; |
271 end | 271 end |
272 elseif resp == "CONT" then | 272 elseif resp == "CONT" then |
273 return "challenge", unb64(data[1]); | 273 return "challenge", unb64(data[1]); |
274 elseif resp == "OK" then | 274 elseif resp == "OK" then |
275 return "success", data.resp and unb64(data.resp) or nil; | 275 return "success", data.resp and unb64(data.resp) or nil; |
276 end | 276 end |
277 end | 277 end |
278 | 278 |
279 return _M; | 279 return _M; |