# HG changeset patch # User Waqas Hussain # Date 1276124062 -18000 # Node ID d0525df563c04f2c0a97b97ea16b3558834f77f9 # Parent 01da55cffcfba4383b915bcbf2de5ac8c885b1ed mod_legacyauth: Fixed the ordering of parameters passed to usermanager.test_password. diff -r 01da55cffcfb -r d0525df563c0 plugins/mod_legacyauth.lua --- a/plugins/mod_legacyauth.lua Thu Jun 10 03:26:01 2010 +0500 +++ b/plugins/mod_legacyauth.lua Thu Jun 10 03:54:22 2010 +0500 @@ -50,7 +50,7 @@ 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