mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-07-02 12:35:24 +02:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -6,9 +6,10 @@ export const generateRandomPassword = (
|
|||||||
length: number = DEFAULT_PASSWORD_LENGTH,
|
length: number = DEFAULT_PASSWORD_LENGTH,
|
||||||
charset: string = DEFAULT_PASSWORD_CHARSET,
|
charset: string = DEFAULT_PASSWORD_CHARSET,
|
||||||
) => {
|
) => {
|
||||||
const safeLength = Number.isFinite(length) && length > 0
|
const safeLength =
|
||||||
? Math.floor(length)
|
Number.isFinite(length) && length > 0
|
||||||
: DEFAULT_PASSWORD_LENGTH;
|
? Math.floor(length)
|
||||||
|
: DEFAULT_PASSWORD_LENGTH;
|
||||||
|
|
||||||
if (safeLength <= 0 || charset.length === 0) {
|
if (safeLength <= 0 || charset.length === 0) {
|
||||||
return "";
|
return "";
|
||||||
|
|||||||
Reference in New Issue
Block a user