Comparison

mod_auth_external/mod_auth_external.lua @ 217:3da3d6480e65

mod_auth_external: Update for new usermanager.test_password syntax
author Matthew Wild <mwild1@gmail.com>
date Wed, 21 Jul 2010 21:03:36 +0100
parent 197:2686221255cf
child 305:4c3abf1a9b5a
comparison
equal deleted inserted replaced
215:281db5eefcb4 217:3da3d6480e65
117 local prepped_username = nodeprep(username); 117 local prepped_username = nodeprep(username);
118 if not prepped_username then 118 if not prepped_username then
119 log("debug", "NODEprep failed on username: %s", username); 119 log("debug", "NODEprep failed on username: %s", username);
120 return "", nil; 120 return "", nil;
121 end 121 end
122 return usermanager.test_password(prepped_username, password, realm), true; 122 return usermanager.test_password(prepped_username, realm, password), true;
123 end, 123 end,
124 }; 124 };
125 return new_sasl(realm, testpass_authentication_profile); 125 return new_sasl(realm, testpass_authentication_profile);
126 end 126 end
127 127