Fix "no authentication" message with custom password

Fixes #757.
This commit is contained in:
Asher 2019-06-11 12:07:10 -05:00
parent 02f62882b8
commit cf63bbd003
No known key found for this signature in database
GPG Key ID: 7BB4BA9C783D2BBC

View File

@ -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) {