Diff

plugins/mod_auth_internal_hashed.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 3389:9e2485880cd6
child 3454:8cf30367aa4f
line wrap: on
line diff
--- a/plugins/mod_auth_internal_hashed.lua	Tue Jul 20 17:42:44 2010 +0500
+++ b/plugins/mod_auth_internal_hashed.lua	Wed Jul 21 21:01:36 2010 +0100
@@ -141,7 +141,7 @@
 					log("debug", "NODEprep failed on username: %s", username);
 					return "", nil;
 				end
-				return usermanager.test_password(prepped_username, password, realm), true;
+				return usermanager.test_password(prepped_username, realm, password), true;
 			end,
 			scram_sha_1 = function(username, realm)
 				local credentials = datamanager.load(username, host, "accounts");