Merge pull request #220 from alx/apikey-trim
fix issue with newline in APIKEY.txt when checking api key
This commit is contained in:
commit
49e28ddc05
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ var functions = {
|
||||||
exports.handle = function(functionName, fields, req, res)
|
exports.handle = function(functionName, fields, req, res)
|
||||||
{
|
{
|
||||||
//check the api key!
|
//check the api key!
|
||||||
if(fields["apikey"] != apikey)
|
if(fields["apikey"] != apikey.trim())
|
||||||
{
|
{
|
||||||
res.send({code: 4, message: "no or wrong API Key", data: null});
|
res.send({code: 4, message: "no or wrong API Key", data: null});
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue