Software /
code /
prosody
Comparison
util/sasl_cyrus.lua @ 2720:289f68e704da
util.sasl_cyrus: Ensure the mechanisms table is available after a failed auth attempt.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Mon, 01 Mar 2010 18:37:47 +0500 |
parent | 2577:acb382c703e4 |
child | 2881:4e6c6b1ddce7 |
comparison
equal
deleted
inserted
replaced
2716:4e4a24a1288d | 2720:289f68e704da |
---|---|
85 end | 85 end |
86 | 86 |
87 -- select a mechanism to use | 87 -- select a mechanism to use |
88 function method:select(mechanism) | 88 function method:select(mechanism) |
89 self.mechanism = mechanism; | 89 self.mechanism = mechanism; |
90 if not self.mechs then self:mechanisms(); end | |
90 return self.mechs[mechanism]; | 91 return self.mechs[mechanism]; |
91 end | 92 end |
92 | 93 |
93 -- feed new messages to process into the library | 94 -- feed new messages to process into the library |
94 function method:process(message) | 95 function method:process(message) |