353:8cd05c3d0f1f | 354:58cd27b74ba5 |
---|---|
1 | |
2 return function (stream, mechanisms, preference) | |
3 if stream.username and stream.password then | |
4 mechanisms["PLAIN"] = function (stream) | |
5 return "success" == coroutine.yield("\0"..stream.username.."\0"..stream.password); | |
6 end; | |
7 preference["PLAIN"] = 5; | |
8 end | |
9 end | |
10 |