mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 21:57:45 +03:00
mod_legacyauth: Fixed the ordering of parameters passed to usermanager.test_password.
This commit is contained in:
parent
802beadb22
commit
a92e0df397
1 changed files with 1 additions and 1 deletions
|
@ -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.test_password(session.host, username, password) then
|
||||
if usermanager.test_password(username, password, session.host) then
|
||||
-- Authentication successful!
|
||||
local success, err = sessionmanager.make_authenticated(session, username);
|
||||
if success then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue