aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-06-10 03:54:22 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-06-10 03:54:22 +0500
commita92e0df397182f7c9924a3893364fc295de07ef3 (patch)
tree1b5049c1534467fcff53f35e7a1c6f8386e990bc /plugins
parent802beadb22d1a3f7fbee1f8d1a276c92dcfc09e9 (diff)
downloadprosody-a92e0df397182f7c9924a3893364fc295de07ef3.tar.gz
prosody-a92e0df397182f7c9924a3893364fc295de07ef3.zip
mod_legacyauth: Fixed the ordering of parameters passed to usermanager.test_password.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_legacyauth.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_legacyauth.lua b/plugins/mod_legacyauth.lua
index 2f163cbb..50566fa6 100644
--- a/plugins/mod_legacyauth.lua
+++ b/plugins/mod_legacyauth.lua
@@ -50,7 +50,7 @@ module:add_iq_handler("c2s_unauthed", "jabber:iq:auth",
username = nodeprep(username);
resource = resourceprep(resource)
local reply = st.reply(stanza);
- if usermanager.test_password(session.host, username, password) then
+ if usermanager.test_password(username, password, session.host) then
-- Authentication successful!
local success, err = sessionmanager.make_authenticated(session, username);
if success then