Diff

util/sasl/plain.lua @ 3164:db9def53fe9c

Check in mod_hashpassauth -- works!
author Jeff Mitchell <jeff@jefferai.org>
date Wed, 26 May 2010 18:16:58 -0400
parent 3080:8e842989ced2
child 3173:bb4286962d69
line wrap: on
line diff
--- 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