mirror of
https://github.com/coder/code-server.git
synced 2024-12-24 18:23:01 +03:00
Randomly generate password
This commit is contained in:
parent
e2ec010a1d
commit
63f7c57b4e
@ -132,7 +132,14 @@ export class Entry extends Command {
|
||||
}
|
||||
});
|
||||
|
||||
const password = "023450wf0951";
|
||||
const passwordLength = 12;
|
||||
const possible = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
||||
const chars = [];
|
||||
for (let i = 0; i < passwordLength; i++) {
|
||||
chars.push(possible[Math.floor(Math.random() * possible.length)]);
|
||||
}
|
||||
const password = chars.join("");
|
||||
|
||||
const hasCustomHttps = certData && certKeyData;
|
||||
const app = await createApp({
|
||||
allowHttp: flags["allow-http"],
|
||||
|
Loading…
Reference in New Issue
Block a user