Software /
code /
prosody
Comparison
plugins/mod_legacyauth.lua @ 3222:d0525df563c0
mod_legacyauth: Fixed the ordering of parameters passed to usermanager.test_password.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Thu, 10 Jun 2010 03:54:22 +0500 |
parent | 3217:382f70627ff9 |
child | 3395:e736f68c1047 |
comparison
equal
deleted
inserted
replaced
3221:01da55cffcfb | 3222:d0525df563c0 |
---|---|
48 else | 48 else |
49 username, password, resource = t_concat(username), t_concat(password), t_concat(resource); | 49 username, password, resource = t_concat(username), t_concat(password), t_concat(resource); |
50 username = nodeprep(username); | 50 username = nodeprep(username); |
51 resource = resourceprep(resource) | 51 resource = resourceprep(resource) |
52 local reply = st.reply(stanza); | 52 local reply = st.reply(stanza); |
53 if usermanager.test_password(session.host, username, password) then | 53 if usermanager.test_password(username, password, session.host) then |
54 -- Authentication successful! | 54 -- Authentication successful! |
55 local success, err = sessionmanager.make_authenticated(session, username); | 55 local success, err = sessionmanager.make_authenticated(session, username); |
56 if success then | 56 if success then |
57 local err_type, err_msg; | 57 local err_type, err_msg; |
58 success, err_type, err, err_msg = sessionmanager.bind_resource(session, resource); | 58 success, err_type, err, err_msg = sessionmanager.bind_resource(session, resource); |