Software /
code /
prosody
Diff
plugins/mod_legacyauth.lua @ 3395:e736f68c1047
usermanager, mod_auth_internal_hashed, mod_legacyauth: New order of parameters for usermanager.test_password - username, host, password
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 21 Jul 2010 21:01:36 +0100 |
parent | 3222:d0525df563c0 |
child | 3527:59cdb9166bd0 |
line wrap: on
line diff
--- a/plugins/mod_legacyauth.lua Tue Jul 20 17:42:44 2010 +0500 +++ b/plugins/mod_legacyauth.lua Wed Jul 21 21:01:36 2010 +0100 @@ -50,7 +50,7 @@ username = nodeprep(username); resource = resourceprep(resource) local reply = st.reply(stanza); - if usermanager.test_password(username, password, session.host) then + if usermanager.test_password(username, session.host, password) then -- Authentication successful! local success, err = sessionmanager.make_authenticated(session, username); if success then