mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-27 07:07:31 +00:00
542a57b74e
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)
4 lines
203 B
TypeScript
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';
|