File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -216,6 +216,7 @@ const bold = (text: string | number): string | number => {
216216 }
217217
218218 let password = options . password || process . env . PASSWORD ;
219+ const usingCustomPassword = ! ! password ;
219220 if ( ! password ) {
220221 // Generate a random password with a length of 24.
221222 const buffer = Buffer . alloc ( 12 ) ;
@@ -304,7 +305,7 @@ const bold = (text: string | number): string | number => {
304305 logger . warn ( "Documentation on securing your setup: https://github.com/codercom/code-server/blob/master/doc/security/ssl.md" ) ;
305306 }
306307
307- if ( ! options . noAuth ) {
308+ if ( ! options . noAuth && ! usingCustomPassword ) {
308309 logger . info ( " " ) ;
309310 logger . info ( `Password:\u001B[1m ${ password } ` ) ;
310311 } else {
You can’t perform that action at this time.
0 commit comments