Software /
code /
prosody
Diff
util/sasl/plain.lua @ 3981:2b0b8fe68df2
util.sasl.*, mod_auth_*, mod_saslauth: Pass SASL handler as first parameter to SASL profile callbacks.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Mon, 27 Dec 2010 19:57:04 +0500 |
parent | 3179:99c5288a26e4 |
child | 4113:65482a852c4d |
line wrap: on
line diff
--- a/util/sasl/plain.lua Mon Dec 27 19:43:57 2010 +0500 +++ b/util/sasl/plain.lua Mon Dec 27 19:57:04 2010 +0500 @@ -57,10 +57,10 @@ local correct, state = false, false; if self.profile.plain then local correct_password; - correct_password, state = self.profile.plain(authentication, self.realm); + correct_password, state = self.profile.plain(self, authentication, self.realm); correct = (correct_password == password); elseif self.profile.plain_test then - correct, state = self.profile.plain_test(authentication, password, self.realm); + correct, state = self.profile.plain_test(self, authentication, password, self.realm); end self.username = authentication