util/sasl/plain.lua

changeset 3981
2b0b8fe68df2
parent 3179
99c5288a26e4
--- 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

mercurial