util/sasl/plain.lua@2762abec4c63
util/sasl/plain.lua
Mon, 06 Dec 2021 09:03:39 +0000
- author
- Matthew Wild <mwild1@gmail.com>
- date
- Mon, 06 Dec 2021 09:03:39 +0000
- changeset 437
- 2762abec4c63
- parent 358
-
a8f6fd6a70ed
- permissions
- -rw-r--r--
pubsub: Allow setting additional attributes in pubsub action elements
return function (stream, name)
if name == "PLAIN" and stream.username and stream.password then
return function (stream)
return "success" == coroutine.yield("\0"..stream.username.."\0"..stream.password);
end, 5;
end
end