projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mod_legacyauth: Fixed the ordering of parameters passed to usermanager.test_password.
[prosody.git]
/
plugins
/
mod_legacyauth.lua
diff --git
a/plugins/mod_legacyauth.lua
b/plugins/mod_legacyauth.lua
index 2f163cbb38405d5894846d1ff6d80d7e7059f02f..50566fa661b66ba0b98b7ba74493d1d51869679b 100644
(file)
--- 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);
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
-- Authentication successful!
local success, err = sessionmanager.make_authenticated(session, username);
if success then