Skip to content

Add My Account page for all users#80

Merged
judedanbo merged 3 commits into
mainfrom
claude/my-account-page-ee580z
Jun 12, 2026
Merged

Add My Account page for all users#80
judedanbo merged 3 commits into
mainfrom
claude/my-account-page-ee580z

Conversation

@judedanbo

Copy link
Copy Markdown
Owner

Add a role-agnostic /account page where any authenticated user can view
their account details, edit contact info, change their password, and verify
their email/phone.

  • New endpoints: POST /api/account/change-password (verifies current
    password, rehashes at bcrypt cost 13, revokes refresh tokens) and
    PATCH /api/account/contact (self-service email/phone update; email change
    resets verification and sends a new link, phone change resets verification).
  • Extract shared issueEmailVerification() helper, reused by
    resend-verification and the contact endpoint.
  • Add changePasswordSchema + updateContactSchema validators and
    PASSWORD_CHANGED / CONTACT_INFO_UPDATED audit actions.
  • New pages/account.vue mirrors the settings/preferences form pattern and
    reuses the phone-verify flow; links out to /settings/preferences.
  • Add "My Account" link to the header dropdown.
  • Schema unit tests for the new validators.

https://claude.ai/code/session_01JWLsffocCpACj4FJvQZ6Dw

claude added 3 commits June 11, 2026 22:28
Document features added since the doc was last touched:
- Admin-managed global settings (DB override -> env fallback)
- Declaration review sub-statuses (reviewStatus)
- Verified-contact notification gating
- Applicant verification-document upload for legal info requests
- Multi-role role switcher / effectiveRole
- Ghana phone normalization and local SMS routing

https://claude.ai/code/session_01FuPFshQzQG1PkGZLYUPepA
Add a role-agnostic /account page where any authenticated user can view
their account details, edit contact info, change their password, and verify
their email/phone.

- New endpoints: POST /api/account/change-password (verifies current
  password, rehashes at bcrypt cost 13, revokes refresh tokens) and
  PATCH /api/account/contact (self-service email/phone update; email change
  resets verification and sends a new link, phone change resets verification).
- Extract shared issueEmailVerification() helper, reused by
  resend-verification and the contact endpoint.
- Add changePasswordSchema + updateContactSchema validators and
  PASSWORD_CHANGED / CONTACT_INFO_UPDATED audit actions.
- New pages/account.vue mirrors the settings/preferences form pattern and
  reuses the phone-verify flow; links out to /settings/preferences.
- Add "My Account" link to the header dropdown.
- Schema unit tests for the new validators.

https://claude.ai/code/session_01JWLsffocCpACj4FJvQZ6Dw
@judedanbo judedanbo merged commit 165b11d into main Jun 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants