Skip to content

Commit 63f7c57

Browse files
committed
Randomly generate password
1 parent e2ec010 commit 63f7c57

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

packages/server/src/cli.ts

+8-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,14 @@ export class Entry extends Command {
132132
}
133133
});
134134

135-
const password = "023450wf0951";
135+
const passwordLength = 12;
136+
const possible = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
137+
const chars = [];
138+
for (let i = 0; i < passwordLength; i++) {
139+
chars.push(possible[Math.floor(Math.random() * possible.length)]);
140+
}
141+
const password = chars.join("");
142+
136143
const hasCustomHttps = certData && certKeyData;
137144
const app = await createApp({
138145
allowHttp: flags["allow-http"],

0 commit comments

Comments
 (0)