My Portal
Change Password
| Path | /change-password |
|---|---|
| Status | live |
| Drill-down pages | — |
| Pop-ups | — |
| Tabs | — |
| API routes | /api/auth/password |
Business rules
Data comes from: dh_users (your own login). Every signed-in login, admins and staff alike (My Portal → Change Password). Server: PUT /api/auth/password.
How it works:
- The only place to change your own password (
components/account/ChangePasswordForm.tsx): current password, new password (at least 6 characters, at most 200, different from the current one), confirm. The old Admin → Settings page held only this form;/settingsnow opens this page. - Each IP may try 5 times a minute (see Rate limits).
- After saving, your other devices are signed out (after 15 seconds); this browser stays signed in.
- A wrong current password answers "Current password is incorrect" and you stay signed in.
Database tables & columns
| Table | Columns used |
|---|---|
dh_users | access, created_at, email, failed_login_count, failed_login_window_start, id, last_login_at, locked_until, name, password_changed_at, password_hash, role, staff_id, status, updated_at |
File structure
Its own files
- apps/
- web/
- src/
- pages/
- ChangePassword.tsx
- pages/
- src/
- web/
Shared code it uses (followed through its imports and the helpers its API calls; sign-in/access plumbing and UI primitives left out)
- apps/
- web/
- src/
- components/
- account/
- ChangePasswordForm.tsx
- reports/
- DentrixSourceNote.tsx
- HowItWorksNote.tsx
- ReportHeader.tsx
- account/
- contexts/
- AuthContext.tsx
- services/
- api.ts
- components/
- src/
- worker/
- src/
- db/
- index.ts
- routes/
- auth.ts
- services/
- password-change.ts
- session.ts
- staff-onboarding.ts
- utils/
- jwt-key.ts
- password.ts
- db/
- src/
- web/