From dc2a5eef5c9de02602115931b2898ddd780d6ebb Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Tue, 17 Feb 2015 17:46:36 +0000 Subject: [PATCH] Force user to authenticate --- configs/standalone.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configs/standalone.js b/configs/standalone.js index 54dccd74..4cb8d5d8 100644 --- a/configs/standalone.js +++ b/configs/standalone.js @@ -85,8 +85,10 @@ module.exports = function(config, optimist) { require("child_process").exec("tmux -L cloud91.9 kill-server", function(){}); var isLocalhost = host == "localhost" || host == "127.0.0.1"; - if (argv.auth == ":" && !isLocalhost) - argv.auth = "admin:admin"; + if (argv.auth == ":" && !isLocalhost) { + console.log("Authentication is required when not running on localhost. Please use -a user:pass."); + process.exit(255); + } var auth = argv.auth.split(":"); var plugins = [