plugins/mod_component.lua

changeset 3503
85e511e01d3c
parent 3319
95fc08869273
child 3531
f41e1cfe92f4
--- a/plugins/mod_component.lua	Tue Sep 21 17:24:25 2010 +0500
+++ b/plugins/mod_component.lua	Tue Sep 21 17:37:11 2010 +0500
@@ -31,9 +31,9 @@
 		return;
 	end
 	
-	local secret = config.get(session.user, "core", "component_secret");
+	local secret = config.get(session.host, "core", "component_secret");
 	if not secret then
-		(session.log or log)("warn", "Component attempted to identify as %s, but component_secret is not set", session.user);
+		(session.log or log)("warn", "Component attempted to identify as %s, but component_secret is not set", session.host);
 		session:close("not-authorized");
 		return;
 	end

mercurial