diff --git a/app/sites/[id]/settings/page.tsx b/app/sites/[id]/settings/page.tsx index 22c1f01..6795db4 100644 --- a/app/sites/[id]/settings/page.tsx +++ b/app/sites/[id]/settings/page.tsx @@ -947,22 +947,30 @@ export default function SiteSettingsPage() {
-
-
-

Password Protection

-

Restrict access to this dashboard.

+
+
+
+

Password Protection

+

Restrict access to this dashboard.

+
+ {isPasswordEnabled && site?.has_password && !formData.password && ( + + + Password set + + )}
@@ -974,15 +982,36 @@ export default function SiteSettingsPage() { exit={{ opacity: 0, height: 0 }} className="overflow-hidden" > - setFormData({ ...formData, password: e.target.value })} - placeholder={site.has_password ? "Change password (leave empty to keep current)" : "Set a password"} - /> -

- Visitors will need to enter this password to view the dashboard. -

+
+ setFormData({ ...formData, password: e.target.value })} + placeholder="Enter new password" + /> + {site?.has_password && ( +

+ Current password will remain unchanged unless you enter a new one. +

+ )} + {site?.has_password && ( + + )} + {!site?.has_password && ( +

+ Visitors will need to enter this password to view the dashboard. +

+ )} +
)}