atlp-rwanda / dynamites-ecomm-fe

https://dynamite-frontend.netlify.app/
0 stars 0 forks source link

creating passwrod reset functionality #61

Open niyobern opened 6 days ago

niyobern commented 6 days ago

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

Technical Details

Testing

  1. Checkout this branch by running git switch 59-implementation-for-forgot-password-functionality in bash terminal (code is expected to work also on Windows)
  2. Run npm run dev comand in your terminal
  3. go to [/forgot-password](http://localhost:5173/forgot-password) in your browser (expected to work accross browsers)
  4. Enter your email for the account you want to reset password for
  5. click on the link sent to your inbox for password reset. It should redirect you to a page like this http://localhost:5173/reset-password/{token} where token is a unique key to help you reset your password
  6. Fill the form with your new password two times and click submit
  7. You will be redirected to login page if reset password is successful or you will see an error message.

Screenshots image image image image

codecov-commenter commented 6 days ago

Codecov Report

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).

Files Patch % Lines
src/__test__/Auth_Tests/passwordResetRequest.tsx 0.00% 126 Missing and 1 partial :warning:
src/pages/PasswordResetRequestForm.tsx 21.09% 101 Missing :warning:
src/pages/PasswordResetForm.tsx 95.41% 6 Missing :warning:
src/components/home/Category.tsx 0.00% 1 Missing :warning:
src/main.tsx 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #61 +/- ## =========================================== - Coverage 88.35% 82.63% -5.73% =========================================== Files 40 44 +4 Lines 2611 3098 +487 Branches 188 221 +33 =========================================== + Hits 2307 2560 +253 - Misses 300 533 +233 - Partials 4 5 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

netlify[bot] commented 4 days ago

Deploy Preview for dynamite-frontend ready!

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...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] commented 4 days ago

Deploy Preview for dynamites ready!

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...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.