prosody: Enable storage manager.
[prosody.git] / plugins / mod_legacyauth.lua
index 2f163cbb38405d5894846d1ff6d80d7e7059f02f..2e1ca32825240c6d28d446ef3877a846a15fb8bb 100644 (file)
@@ -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, session.host, password) then
                                        -- Authentication successful!
                                        local success, err = sessionmanager.make_authenticated(session, username);
                                        if success then