mod_posix: Some (perhaps temporary) changes to re-lock the pidfile after truncating...
[prosody.git] / plugins / mod_legacyauth.lua
index 0134d736d831440479573d42e5a5b91d046af44a..50566fa661b66ba0b98b7ba74493d1d51869679b 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.validate_credentials(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