Add My Account page for all users#80
Merged
Merged
Conversation
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
…into claude/my-account-page-ee580z
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
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).
resend-verification and the contact endpoint.
PASSWORD_CHANGED / CONTACT_INFO_UPDATED audit actions.
reuses the phone-verify flow; links out to /settings/preferences.
https://claude.ai/code/session_01JWLsffocCpACj4FJvQZ6Dw