mod_legacyauth: Fixed the ordering of parameters passed to usermanager.test_password.

Thu, 10 Jun 2010 03:54:22 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Thu, 10 Jun 2010 03:54:22 +0500
changeset 3222
d0525df563c0
parent 3221
01da55cffcfb
child 3223
ee2dabe699c9

mod_legacyauth: Fixed the ordering of parameters passed to usermanager.test_password.

plugins/mod_legacyauth.lua file | annotate | diff | comparison | revisions
--- 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

mercurial