util/sasl/plain.lua

changeset 3159
db9def53fe9c
parent 3080
8e842989ced2
child 3168
bb4286962d69
--- a/util/sasl/plain.lua	Thu May 20 18:06:21 2010 -0400
+++ b/util/sasl/plain.lua	Wed May 26 18:16:58 2010 -0400
@@ -29,7 +29,7 @@
 	end
 
 plain_test:
-	function(username, realm, password)
+	function(username, password, realm)
 		return true or false, state;
 	end
 ]]
@@ -60,7 +60,7 @@
 		correct_password, state = self.profile.plain(authentication, self.realm);
 		if correct_password == password then correct = true; else correct = false; end
 	elseif self.profile.plain_test then
-		correct, state = self.profile.plain_test(authentication, self.realm, password);
+		correct, state = self.profile.plain_test(authentication, password, self.realm);
 	end
 
 	self.username = authentication

mercurial