Open niyobern opened 6 days ago
Attention: Patch coverage is 56.61765%
with 236 lines
in your changes missing coverage. Please review.
Project coverage is 82.63%. Comparing base (
c53ae89
) to head (5ca4a2e
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Name | Link |
---|---|
Latest commit | 5ca4a2ec9c102fab677064d2cf6f5c890b4cee46 |
Latest deploy log | https://app.netlify.com/sites/dynamite-frontend/deploys/6685c458513a990008c25f28 |
Deploy Preview | https://deploy-preview-61--dynamite-frontend.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Name | Link |
---|---|
Latest commit | 5ca4a2ec9c102fab677064d2cf6f5c890b4cee46 |
Latest deploy log | https://app.netlify.com/sites/dynamites/deploys/6685c458deff3000081b6325 |
Deploy Preview | https://deploy-preview-61--dynamites.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Summary This pull request introduces significant updates to the authentication flow within our application, specifically focusing on the password recovery and reset functionalities. By refining these processes, we aim to provide a more secure and user-friendly experience for our users when they need to recover access to their accounts
Changes
Password Recovery Initiation: Implemented an asynchronous thunk action,
requestPasswordReset
, which sends a request to the backend with the user's email. This initiates the password recovery process by generating a recovery token and sending it to the user's email address (this needs a fix).Password Reset: Added another asynchronous thunk action,
resetPassword
, which allows users to reset their password using the recovery token sent to their email. This action sends the token and the new password to the backend, where the token is verified, and the password is updated.Technical Details
Both thunk actions utilize axios for making HTTP POST requests to the backend.
Error handling is implemented to return the error response data using
rejectWithValue
in case of request failures, ensuring that the application can gracefully inform the user about any issues encountered during the process.Testing
git switch 59-implementation-for-forgot-password-functionality
in bash terminal (code is expected to work also on Windows)npm run dev
comand in your terminal[/forgot-password](http://localhost:5173/forgot-password)
in your browser (expected to work accross browsers)http://localhost:5173/reset-password/{token}
where token is a unique key to help you reset your passwordScreenshots