Comparison

plugins/mod_component.lua @ 2490:6eee75fb3159

mod_component: Fix name of config option in error message (thanks nulani!)
author Matthew Wild <mwild1@gmail.com>
date Sat, 23 Jan 2010 02:53:44 +0000
parent 1523:841d61be198f
child 2495:9c32f469b82c
child 2923:b7049746bd29
comparison
equal deleted inserted replaced
2489:d8296ab96f55 2490:6eee75fb3159
42 return; 42 return;
43 end 43 end
44 44
45 local secret = config.get(session.user, "core", "component_secret"); 45 local secret = config.get(session.user, "core", "component_secret");
46 if not secret then 46 if not secret then
47 (session.log or log)("warn", "Component attempted to identify as %s, but component_password is not set", session.user); 47 (session.log or log)("warn", "Component attempted to identify as %s, but component_secret is not set", session.user);
48 session:close("not-authorized"); 48 session:close("not-authorized");
49 return; 49 return;
50 end 50 end
51 51
52 local supplied_token = t_concat(stanza); 52 local supplied_token = t_concat(stanza);