Comparison

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
comparison
equal deleted inserted replaced
3394:9bf5f2b3314b 3395:e736f68c1047
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(username, password, session.host) then 53 if usermanager.test_password(username, session.host, password) 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);