--- a/plugins/mod_legacyauth.lua Tue Jul 20 17:42:44 2010 +0500 +++ b/plugins/mod_legacyauth.lua Wed Jul 21 21:01:36 2010 +0100 @@ -50,7 +50,7 @@ username = nodeprep(username); resource = resourceprep(resource) local reply = st.reply(stanza); - if usermanager.test_password(username, password, session.host) then + if usermanager.test_password(username, session.host, password) then -- Authentication successful! local success, err = sessionmanager.make_authenticated(session, username); if success then