From 18d980c3fff81e0df3ff215056e8c04fbf75ffd1 Mon Sep 17 00:00:00 2001 From: Mauricio Siu Date: Mon, 12 Jan 2026 09:19:22 -0600 Subject: [PATCH] feat: enable password generator for database inputs and disable it for profile settings --- apps/dokploy/components/dashboard/project/add-database.tsx | 2 ++ .../dashboard/settings/profile/configure-2fa.tsx | 1 - .../components/dashboard/settings/profile/enable-2fa.tsx | 1 - .../components/dashboard/settings/profile/profile-form.tsx | 1 - .../dashboard/settings/servers/setup-monitoring.tsx | 1 - apps/dokploy/components/shared/toggle-visibility-input.tsx | 7 +------ apps/dokploy/components/ui/input.tsx | 2 +- 7 files changed, 4 insertions(+), 11 deletions(-) diff --git a/apps/dokploy/components/dashboard/project/add-database.tsx b/apps/dokploy/components/dashboard/project/add-database.tsx index 3176b9589..278707cef 100644 --- a/apps/dokploy/components/dashboard/project/add-database.tsx +++ b/apps/dokploy/components/dashboard/project/add-database.tsx @@ -559,6 +559,7 @@ export const AddDatabase = ({ environmentId, projectName }: Props) => { type="password" placeholder="******************" autoComplete="one-time-code" + enablePasswordGenerator={true} {...field} /> @@ -578,6 +579,7 @@ export const AddDatabase = ({ environmentId, projectName }: Props) => { diff --git a/apps/dokploy/components/dashboard/settings/profile/configure-2fa.tsx b/apps/dokploy/components/dashboard/settings/profile/configure-2fa.tsx index 788ea55ac..17220cd11 100644 --- a/apps/dokploy/components/dashboard/settings/profile/configure-2fa.tsx +++ b/apps/dokploy/components/dashboard/settings/profile/configure-2fa.tsx @@ -263,7 +263,6 @@ export const Configure2FA = () => { type="password" placeholder="Enter your password" {...field} - enablePasswordGenerator={false} /> diff --git a/apps/dokploy/components/dashboard/settings/profile/enable-2fa.tsx b/apps/dokploy/components/dashboard/settings/profile/enable-2fa.tsx index 573dae8f8..656b27401 100644 --- a/apps/dokploy/components/dashboard/settings/profile/enable-2fa.tsx +++ b/apps/dokploy/components/dashboard/settings/profile/enable-2fa.tsx @@ -290,7 +290,6 @@ export const Enable2FA = () => { type="password" placeholder="Enter your password" {...field} - enablePasswordGenerator={false} /> diff --git a/apps/dokploy/components/dashboard/settings/profile/profile-form.tsx b/apps/dokploy/components/dashboard/settings/profile/profile-form.tsx index c2ee0c230..ad66aa0fa 100644 --- a/apps/dokploy/components/dashboard/settings/profile/profile-form.tsx +++ b/apps/dokploy/components/dashboard/settings/profile/profile-form.tsx @@ -236,7 +236,6 @@ export const ProfileForm = () => { placeholder={t("settings.profile.password")} {...field} value={field.value || ""} - enablePasswordGenerator={false} /> diff --git a/apps/dokploy/components/dashboard/settings/servers/setup-monitoring.tsx b/apps/dokploy/components/dashboard/settings/servers/setup-monitoring.tsx index d2b9b999b..09260b1a2 100644 --- a/apps/dokploy/components/dashboard/settings/servers/setup-monitoring.tsx +++ b/apps/dokploy/components/dashboard/settings/servers/setup-monitoring.tsx @@ -568,7 +568,6 @@ export const SetupMonitoring = ({ serverId }: Props) => { type={showToken ? "text" : "password"} placeholder="Enter your metrics token" {...field} - enablePasswordGenerator={false} />