Files
TREK/server/src/nest/common/passwordPolicy.ts
T
Maurice 542a57b74e feat(auth): password rules checked while typing, with the server's own policy
The password policy moves to @trek/shared, where the server keeps enforcing it unchanged and every form that sets a password now runs it before sending: the forced change after the first login, registration, the reset link, the account settings on desktop and phone, and creating or editing a user in admin. Under each new password a checklist ticks off length, upper and lower case, a number and a special character, and a refusal names the actual reason, a too common or too repetitive password included. (#1200)
2026-10-01 10:17:28 +02:00

4 lines
203 B
TypeScript

// The policy lives in @trek/shared so the forms can check a password the same way
// while it is typed (#1200); the server keeps enforcing it from here.
export { validatePassword } from '@trek/shared';