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 hasCustomHttps = certData && certKeyData;
|
||||||
const app = await createApp({
|
const app = await createApp({
|
||||||
allowHttp: flags["allow-http"],
|
allowHttp: flags["allow-http"],
|
||||||
|
Loading…
Reference in New Issue
Block a user