handle auth fails

This commit is contained in:
John McLear 2014-11-26 17:34:44 +00:00
parent 88b3d99fbd
commit 16f3ebb3ba
2 changed files with 4 additions and 4 deletions

View file

@ -450,6 +450,7 @@ exports.handle = function(apiVersion, functionName, fields, req, res)
if(fields["apikey"] != apikey.trim())
{
res.statusCode = 401;
res.send({code: 4, message: "no or wrong API Key", data: null});
return;
}