From 0e1824c0ff64e008e0cd24de5f1a02f1de6e5394 Mon Sep 17 00:00:00 2001 From: Sam Frances Date: Fri, 5 May 2017 14:40:39 +0100 Subject: [PATCH] Add log message for no token provided --- other/js/auth_plugin_examples.js | 5 ++++- other/js/password.txt | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 other/js/password.txt 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