Changeset

3217:382f70627ff9

mod_legacyauth: Use the new usermanager.test_password instead of usermanager.validate_credentials.
author Waqas Hussain <waqas20@gmail.com>
date Wed, 09 Jun 2010 22:20:53 +0500
parents 3216:d4d0519cd0c1
children 3218:032b81731f0f
files plugins/mod_legacyauth.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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