We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebdbb67 commit b8f1ca7Copy full SHA for b8f1ca7
packages/server/src/cli.ts
@@ -216,6 +216,7 @@ const bold = (text: string | number): string | number => {
216
}
217
218
let password = options.password || process.env.PASSWORD;
219
+ const usingCustomPassword = !!password;
220
if (!password) {
221
// Generate a random password with a length of 24.
222
const buffer = Buffer.alloc(12);
@@ -304,7 +305,7 @@ const bold = (text: string | number): string | number => {
304
305
logger.warn("Documentation on securing your setup: https://github.com/codercom/code-server/blob/master/doc/security/ssl.md");
306
307
- if (!options.noAuth) {
308
+ if (!options.noAuth && !usingCustomPassword) {
309
logger.info(" ");
310
logger.info(`Password:\u001B[1m ${password}`);
311
} else {
0 commit comments