mod_legacyauth: Use the new usermanager.test_password instead of usermanager.validate_credentials.
authorWaqas Hussain <waqas20@gmail.com>
Wed, 09 Jun 2010 22:20:53 +0500
changeset 3217 382f70627ff9
parent 3216 d4d0519cd0c1
child 3218 032b81731f0f
mod_legacyauth: Use the new usermanager.test_password instead of usermanager.validate_credentials.
plugins/mod_legacyauth.lua
--- a/plugins/mod_legacyauth.lua	Wed Jun 09 22:01:47 2010 +0500
+++ b/plugins/mod_legacyauth.lua	Wed Jun 09 22:20:53 2010 +0500
@@ -50,7 +50,7 @@
 				username = nodeprep(username);
 				resource = resourceprep(resource)
 				local reply = st.reply(stanza);
-				if usermanager.validate_credentials(session.host, username, password) then
+				if usermanager.test_password(session.host, username, password) then
 					-- Authentication successful!
 					local success, err = sessionmanager.make_authenticated(session, username);
 					if success then