mirror of
https://github.com/bubblecup-12/VogelSocialMedia.git
synced 2025-07-07 04:48:46 +00:00
fixed password legth check
This commit is contained in:
parent
d2b90bf9a4
commit
81ae1d0c76
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ if (fs.existsSync(".env")) {
|
|||
`Enter the ${setting.name} ${setting.default ? `(${setting.default})` : "" + ` min: ${setting.minLength}`}: `,
|
||||
{ defaultInput: setting.default, hideEchoBack: setting.hide }
|
||||
);
|
||||
} while (!input && input.length <= setting.minLength);
|
||||
} while (!input || input.length < setting.minLength);
|
||||
process.env[setting.name] = input;
|
||||
} else if (setting.name === "TOKEN_SECRET") {
|
||||
// generating a random JWT secret
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue