# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1276047684 -7200
# Node ID 7a15cbf23c5b92bdf15571db1790b8fbb72844bf
# Parent  ba5388966742cce10daafb9aeda74bf7a0a03121
Fix missing parameter in mod_auth_internal_hashed.

diff -r ba5388966742 -r 7a15cbf23c5b plugins/mod_auth_internal_hashed.lua
--- a/plugins/mod_auth_internal_hashed.lua	Wed Jun 09 01:11:46 2010 +0100
+++ b/plugins/mod_auth_internal_hashed.lua	Wed Jun 09 03:41:24 2010 +0200
@@ -121,7 +121,7 @@
 			scram_sha_1 = function(username, realm)
 				local credentials = datamanager.load(username, host, "accounts") or {};
 				if credentials.password then
-					usermanager.set_password(username, credentials.password);
+					usermanager.set_password(username, credentials.password, host);
 					credentials = datamanager.load(username, host, "accounts") or {};
 				end
 				local salted_password, iteration_count, salt = credentials.hashpass, credentials.iteration_count, credentials.salt;