Pulse/frontend-modern/src
rcourtman cb9d8d1ab1 Fix config backup/restore by enforcing 12-char minimum password (related to #646)
Users with 8-11 character passwords could not export/restore config backups
because the export encryption requires 12+ character passphrases for security,
but the password creation UI only enforced an 8-character minimum.

This created a confusing UX where users with short passwords saw validation
errors when trying to export backups, with the only solution being to use a
custom passphrase or change their password.

Root cause:
- FirstRunSetup and ChangePasswordModal allowed 8+ char passwords
- Config export/import requires 12+ char passphrases (backend validation)
- The v4.26.4 fix added frontend validation that showed the mismatch
- Users hit client-side validation before request was sent (no backend logs)

This fix raises the minimum password length to 12 characters everywhere:
- internal/auth/password.go: MinPasswordLength 8 → 12
- FirstRunSetup.tsx: validation and placeholder updated
- ChangePasswordModal.tsx: validation, minLength, and help text updated
- QuickSecuritySetup.tsx: validation and label updated

Impact:
- New users must create 12+ character passwords
- Existing users with <12 char passwords are unaffected (can't detect from hash)
- Those users will see the existing helpful error directing them to use custom
  passphrase for backups
- "Use your login password" option now works for all future passwords

This aligns password requirements across the system and eliminates the
confusing mismatch between login credentials and backup encryption requirements.

Related to #646 where user confirmed backups still failed in v4.26.5
2025-11-07 22:51:55 +00:00
..
api Add encryption status to notification health endpoint (P2) 2025-11-07 08:36:55 +00:00
components Fix config backup/restore by enforcing 12-char minimum password (related to #646) 2025-11-07 22:51:55 +00:00
constants Refactor: Code cleanup and localStorage consolidation 2025-11-04 21:50:46 +00:00
hooks Refactor: Code cleanup and localStorage consolidation 2025-11-04 21:50:46 +00:00
pages Refactor: Code cleanup and localStorage consolidation 2025-11-04 21:50:46 +00:00
stores Redirect to login when authentication expires 2025-11-05 19:36:01 +00:00
styles Fix settings security tab navigation 2025-10-11 23:29:47 +00:00
test feat: enhance alerts system with tests and improved thresholds 2025-10-15 22:25:04 +00:00
types Improve Docker temperature monitoring documentation for clarity (related to #600) 2025-11-07 15:09:42 +00:00
utils Redirect to login when authentication expires 2025-11-05 19:36:01 +00:00
App.tsx Add notification system documentation and fix tab panel corner radius 2025-11-07 08:19:50 +00:00
constants.ts Refactor: Code cleanup and localStorage consolidation 2025-11-04 21:50:46 +00:00
index.css Allow layout to expand on wide displays (related to #643) 2025-11-06 21:51:17 +00:00
index.tsx Refactor: Code cleanup and localStorage consolidation 2025-11-04 21:50:46 +00:00
vite-env.d.ts Fix settings security tab navigation 2025-10-11 23:29:47 +00:00