aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-06-09 22:20:53 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-06-09 22:20:53 +0500
commita0a05468a964443edb2616dbed4492c795e8bc81 (patch)
treef4f0e4db312be40a065aa1c0a9944a0a9beab5c5 /plugins
parentbb572575a3457cc63806cde3af95dba095222482 (diff)
downloadprosody-a0a05468a964443edb2616dbed4492c795e8bc81.tar.gz
prosody-a0a05468a964443edb2616dbed4492c795e8bc81.zip
mod_legacyauth: Use the new usermanager.test_password instead of usermanager.validate_credentials.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_legacyauth.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_legacyauth.lua b/plugins/mod_legacyauth.lua
index 0134d736..2f163cbb 100644
--- a/plugins/mod_legacyauth.lua
+++ b/plugins/mod_legacyauth.lua
@@ -50,7 +50,7 @@ module:add_iq_handler("c2s_unauthed", "jabber:iq:auth",
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