do not print no password warning when there is a password

pull/295/merge
nightwing 2016-06-24 03:48:36 +04:00
rodzic b63cac140a
commit dad43a5a37
2 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -100,12 +100,12 @@ module.exports = function(config, optimist) {
console.log("and suppress this message.\n"); console.log("and suppress this message.\n");
host = config.host = "127.0.0.1"; host = config.host = "127.0.0.1";
} }
if (/:/.test(argv.auth) && !isLocalhost && !process.env.C9_HOSTNAME) { var auth = (argv.auth + "").split(":");
if (!auth[1] && !isLocalhost && !process.env.C9_HOSTNAME) {
console.log("Warning: running Cloud9 without using HTTP authentication."); console.log("Warning: running Cloud9 without using HTTP authentication.");
console.log("Run using --listen localhost instead to only expose Cloud9 to localhost,"); console.log("Run using --listen localhost instead to only expose Cloud9 to localhost,");
console.log("or use -a username:password to setup HTTP authentication\n"); console.log("or use -a username:password to setup HTTP authentication\n");
} }
var auth = (argv.auth + "").split(":");
var plugins = [ var plugins = [
{ {

Wyświetl plik

@ -155,4 +155,6 @@ function readWin32Settings() {
if (!fs.existsSync(path.join(process.env.HOME, ".c9", "msys/bin/bash.exe"))) if (!fs.existsSync(path.join(process.env.HOME, ".c9", "msys/bin/bash.exe")))
console.error(e); console.error(e);
} }
process.env.CHERE_INVOKING = 1; // prevent cygwin from changing bash path
} }