Add log message for no token provided

This commit is contained in:
Sam Frances 2017-05-05 14:40:39 +01:00
parent 4143b0008a
commit 0e1824c0ff
2 changed files with 5 additions and 1 deletions

View File

@ -15,7 +15,10 @@ fs = require('fs');
function urlTokenMatch(url, token, verbose=false) {
let splitUrl = url.split("?")
if (splitUrl.length !== 2) {
return ["", false];
if (verbose) {
console.log("Permission denied. No token provided.");
}
return false;
}
let qs = splitUrl[1];
let qs_parsed = querystring.parse(qs);

1
other/js/password.txt Normal file
View File

@ -0,0 +1 @@
passpass12