feat(auth): password change #226
Conversation
There was a problem hiding this comment.
Pull request overview
This PR implements a password change feature for authenticated users, adding a new password change form, API integration, validation schema, and UI navigation. While the title mentions "reset," only the password change functionality is implemented in this PR.
Changes:
- Added password change feature with form validation (minimum 8 characters, passwords must match, new password must differ from old)
- Integrated new API endpoint for password changes with error handling
- Added navigation menu item and dedicated page for password changes
- Modified backend logging to use warnings instead of errors for validation failures
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| src/features/password-change/schemas/change-password-schema.ts | Defines validation schema with password matching and difference checks |
| src/features/password-change/index.ts | Feature module exports for components, API, and schemas |
| src/features/password-change/components/change-password-form.tsx | React form component with error handling and toast notifications |
| src/features/password-change/api/change-password.ts | API integration function for password change endpoint |
| src/features/backend/utils/handle-response.ts | Modified to log validation errors as warnings instead of errors |
| src/components/presentation/navbar.tsx | Added "Change Password" menu item to user dropdown |
| src/app/(private)/change-password/page.tsx | New page component for password change functionality |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
4d293c6 to
720a346
Compare
720a346 to
e2e1cce
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@Konzum59 zrebasuj też brancha:) |
michalges
left a comment
There was a problem hiding this comment.
Jeśli będziesz robił "Zapomniałem hasła" w osobnej pr'ce to zrób issue od razu
e588891 to
604af96
Compare
naprawione to juz, czemu ten github sie tak pruje
No description provided.