MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / generatePassword

Function generatePassword

self-hosting/quiz.ts:27–35  ·  view source on GitHub ↗
(length: number)

Source from the content-addressed store, hash-verified

25};
26
27function generatePassword(length: number) {
28 const charset =
29 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
30 let password = '';
31 for (let i = 0, n = charset.length; i < length; ++i) {
32 password += charset.charAt(Math.floor(Math.random() * n));
33 }
34 return password;
35}
36
37function writeCaddyfile(domainName: string, basicAuthPassword: string) {
38 const caddyfileTemplatePath = path.resolve(

Callers 2

quiz.tsFile · 0.85
initiateOnboardingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected