[TASK] Empty strings are now considered missing parameter.
This commit is contained in:
parent
f72d126589
commit
bf09e0f837
@ -8,6 +8,9 @@ exports.reqParamsGiven = function (keys, obj) {
|
|||||||
if(value == undefined) {
|
if(value == undefined) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if(typeof(value) == "string" && value == "") {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user