diff --git a/frontend-modern/src/components/FirstRunSetup.tsx b/frontend-modern/src/components/FirstRunSetup.tsx index e9652c1..a991e62 100644 --- a/frontend-modern/src/components/FirstRunSetup.tsx +++ b/frontend-modern/src/components/FirstRunSetup.tsx @@ -100,8 +100,8 @@ export const FirstRunSetup: Component<{ force?: boolean; showLegacyBanner?: bool showError('Passwords do not match'); return; } - if (password().length < 8) { - showError('Password must be at least 8 characters'); + if (password().length < 12) { + showError('Password must be at least 12 characters'); return; } } @@ -404,7 +404,7 @@ IMPORTANT: Keep these credentials secure! value={password()} onInput={(e) => setPassword(e.currentTarget.value)} class="w-full px-4 py-2 rounded-lg border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-gray-900 dark:text-gray-100 focus:ring-2 focus:ring-blue-500 focus:border-transparent" - placeholder="Enter password (min 8 characters)" + placeholder="Enter password (min 12 characters)" /> = (props) return; } - if (newPassword().length < 8) { - setError('Password must be at least 8 characters'); + if (newPassword().length < 12) { + setError('Password must be at least 12 characters'); return; } @@ -163,9 +163,9 @@ export const ChangePasswordModal: Component = (props) class={controlClass('shadow-sm')} required disabled={loading()} - minLength={8} + minLength={12} /> -

Minimum 8 characters

+

Minimum 12 characters

diff --git a/frontend-modern/src/components/Settings/QuickSecuritySetup.tsx b/frontend-modern/src/components/Settings/QuickSecuritySetup.tsx index 4e00f05..f7e30d3 100644 --- a/frontend-modern/src/components/Settings/QuickSecuritySetup.tsx +++ b/frontend-modern/src/components/Settings/QuickSecuritySetup.tsx @@ -61,8 +61,8 @@ export const QuickSecuritySetup: Component = (props) => const setupSecurity = async () => { // Validate custom password if using if (useCustomPassword()) { - if (customPassword().length < 8) { - showError('Password must be at least 8 characters'); + if (customPassword().length < 12) { + showError('Password must be at least 12 characters'); return; } if (customPassword() !== confirmPassword()) { @@ -267,7 +267,7 @@ Important: />
- +