Skip to content

Commit cf63bbd

Browse files
committed
Fix "no authentication" message with custom password
Fixes #757.
1 parent 02f6288 commit cf63bbd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/server/src/cli.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -315,10 +315,11 @@ const bold = (text: string | number): string | number => {
315315
logger.warn("Documentation on securing your setup: https://github.com/cdr/code-server/blob/master/doc/security/ssl.md");
316316
}
317317

318-
if (!options.noAuth && !usingCustomPassword) {
318+
if (!options.noAuth) {
319319
logger.info(" ");
320-
logger.info(`Password:\u001B[1m ${password}`);
320+
logger.info(usingCustomPassword ? "Using custom password." : `Password:\u001B[1m ${password}`);
321321
} else {
322+
logger.warn(" ");
322323
logger.warn("Launched without authentication.");
323324
}
324325
if (options.disableTelemetry) {

0 commit comments

Comments
 (0)