diff --git a/other/js/auth_plugin_examples.js b/other/js/auth_plugin_examples.js index 241df9b..c70bae4 100644 --- a/other/js/auth_plugin_examples.js +++ b/other/js/auth_plugin_examples.js @@ -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); diff --git a/other/js/password.txt b/other/js/password.txt new file mode 100644 index 0000000..673181d --- /dev/null +++ b/other/js/password.txt @@ -0,0 +1 @@ +passpass12