From cf63bbd0030e1b288c63338e7fdcb56097e86644 Mon Sep 17 00:00:00 2001 From: Asher Date: Tue, 11 Jun 2019 12:07:10 -0500 Subject: [PATCH] Fix "no authentication" message with custom password Fixes #757. --- packages/server/src/cli.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/server/src/cli.ts b/packages/server/src/cli.ts index 629a961d9..6b809c887 100644 --- a/packages/server/src/cli.ts +++ b/packages/server/src/cli.ts @@ -315,10 +315,11 @@ const bold = (text: string | number): string | number => { logger.warn("Documentation on securing your setup: https://github.com/cdr/code-server/blob/master/doc/security/ssl.md"); } - if (!options.noAuth && !usingCustomPassword) { + if (!options.noAuth) { logger.info(" "); - logger.info(`Password:\u001B[1m ${password}`); + logger.info(usingCustomPassword ? "Using custom password." : `Password:\u001B[1m ${password}`); } else { + logger.warn(" "); logger.warn("Launched without authentication."); } if (options.disableTelemetry) {