Software /
code /
prosody
Diff
plugins/mod_legacyauth.lua @ 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 |
parent | 2925:692b3c6c5bd2 |
child | 3222:d0525df563c0 |
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