Wed, 09 Jun 2010 22:20:53 +0500
mod_legacyauth: Use the new usermanager.test_password instead of usermanager.validate_credentials.
plugins/mod_legacyauth.lua | file | annotate | diff | comparison | revisions |
--- 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