# HG changeset patch # User Marco Cirillo # Date 1367277146 -7200 # Node ID 794817421fc687ed93cf96eba55a3ab92937a090 # Parent 929dcf3c4bcbdd2055addd80c2a87b0eb80f189e mod_register_json: added missing parameter to some http_response calls. diff -r 929dcf3c4bcb -r 794817421fc6 mod_register_json/register_json/mod_register_json.lua --- a/mod_register_json/register_json/mod_register_json.lua Mon Apr 29 23:39:21 2013 +0200 +++ b/mod_register_json/register_json/mod_register_json.lua Tue Apr 30 01:12:26 2013 +0200 @@ -117,12 +117,12 @@ -- Blacklist can be checked here. if blacklist:contains(ip) then module:log("warn", "Attempt of reg. submission to the JSON servlet from blacklisted address: %s", ip) - return http_response(403, "The specified address is blacklisted, sorry.") + return http_response(event, 403, "The specified address is blacklisted, sorry.") end if not check_mail(mail) then module:log("warn", "%s attempted to use a mail address (%s) matching one of the forbidden patterns.", ip, mail) - return http_response(403, "Requesting to register using this E-Mail address is forbidden, sorry.") + return http_response(event, 403, "Requesting to register using this E-Mail address is forbidden, sorry.") end -- We first check if the supplied username for registration is already there.