aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorJeff Mitchell <jeff@jefferai.org>2010-05-26 18:16:58 -0400
committerJeff Mitchell <jeff@jefferai.org>2010-05-26 18:16:58 -0400
commit990ed0f0b3ed1b1f2b6a21a225242aafc2fde39f (patch)
tree64982e7991d58b6a8ee6f6c3553923f2a036380f /util
parent753e5f839b606fd3992678d5d7bb7d2916040e86 (diff)
downloadprosody-990ed0f0b3ed1b1f2b6a21a225242aafc2fde39f.tar.gz
prosody-990ed0f0b3ed1b1f2b6a21a225242aafc2fde39f.zip
Check in mod_hashpassauth -- works!
Diffstat (limited to 'util')
-rw-r--r--util/sasl/plain.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/sasl/plain.lua b/util/sasl/plain.lua
index 39821182..4359bb3f 100644
--- a/util/sasl/plain.lua
+++ b/util/sasl/plain.lua
@@ -29,7 +29,7 @@ plain:
end
plain_test:
- function(username, realm, password)
+ function(username, password, realm)
return true or false, state;
end
]]
@@ -60,7 +60,7 @@ local function plain(self, message)
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