- Use your login password
+ {/* Password Choice Section - Only show if auth is enabled */}
+
+
+
+
-
-
- setUseCustomPassphrase(true)}
- class="mt-1 text-blue-600 focus:ring-blue-500"
- />
-
-
- Use a custom passphrase
-
-
- Create a different passphrase for this backup
-
-
-
+
+
-
+
{/* Show password input based on selection */}
- {useCustomPassphrase() ? 'Custom Passphrase' : 'Enter Your Login Password'}
+ {securityStatus()?.hasAuthentication
+ ? (useCustomPassphrase() ? 'Custom Passphrase' : 'Enter Your Login Password')
+ : 'Encryption Passphrase'}
setExportPassphrase(e.currentTarget.value)}
- placeholder={useCustomPassphrase() ? "Enter a strong passphrase" : "Enter your Pulse login password"}
+ placeholder={
+ securityStatus()?.hasAuthentication
+ ? (useCustomPassphrase() ? "Enter a strong passphrase" : "Enter your Pulse login password")
+ : "Enter a strong passphrase for encryption"
+ }
class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md bg-white dark:bg-gray-700 text-gray-900 dark:text-gray-100 focus:ring-2 focus:ring-blue-500 focus:border-blue-500"
/>
-
+
Passphrase must be at least 12 characters. You'll need this to restore the backup.
@@ -2095,7 +2112,7 @@ const Settings: Component = () => {
-
+
You'll use this same password when restoring the backup