-
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.
+
+ )}
+
)}