Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#187419123-Feature Users should be able to Update their Password #12

Closed
wants to merge 1 commit into from

Conversation

Jovz19200
Copy link
Collaborator

what Does this PR do?

  • Logged user are able to update their password

How to test the functionality ?

  • Checkout to the preview deployment of this PR
  • checkout to the || URL/login (login is prerequisite to be able to update the PW)
  • checkout to the || URL/update-password
  • follow the procedure and update the password
  • verify if the password has been updated by perhaps trying to log in again

Copy link

vercel bot commented Jun 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
eagles-ec-fe ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 25, 2024 2:00pm

UpdatePasswordPayload,
{ rejectValue: UpdatePasswordError }
>("updatePassword", async (payload, { rejectWithValue }) => {
try {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar blocks of code found in 2 locations. Consider refactoring.

initialState,
reducers: {},
extraReducers: (builder) => {
builder
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar blocks of code found in 2 locations. Consider refactoring.

@codecov-commenter
Copy link

codecov-commenter commented Jun 21, 2024

Codecov Report

Attention: Patch coverage is 72.37569% with 50 lines in your changes missing coverage. Please review.

Project coverage is 69.57%. Comparing base (88b567f) to head (bd66387).
Report is 2 commits behind head on dev.

Files Patch % Lines
src/redux/api/updatePasswordApiSlice.ts 37.50% 15 Missing ⚠️
src/components/password/UpdateModal.tsx 58.62% 12 Missing ⚠️
src/pages/otpVerfication.tsx 86.07% 11 Missing ⚠️
src/pages/Login.tsx 0.00% 6 Missing ⚠️
src/redux/api/otpApiSclice.ts 78.26% 5 Missing ⚠️
src/components/common/auth/Password.tsx 90.90% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev      #12      +/-   ##
==========================================
+ Coverage   64.88%   69.57%   +4.69%     
==========================================
  Files          13       20       +7     
  Lines         131      309     +178     
  Branches        5       25      +20     
==========================================
+ Hits           85      215     +130     
- Misses         46       94      +48     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

gitguardian bot commented Jun 24, 2024

⚠️ GitGuardian has uncovered 4 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
12081800 Triggered Generic Password 725aa7a src/test/updatePasswordApiSlice.test.tsx View secret
12081800 Triggered Generic Password 725aa7a src/test/updatePasswordApiSlice.test.tsx View secret
12081800 Triggered Generic Password 725aa7a src/test/updatePasswordApiSlice.test.tsx View secret
12081800 Triggered Generic Password 725aa7a src/test/updatePasswordApiSlice.test.tsx View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secrets safely. Learn here the best practices.
  3. Revoke and rotate these secrets.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

import UpdatePasswordmod from "../components/password/UpdateModal";
import store from "../redux/store";

test("test update password", () => {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar blocks of code found in 2 locations. Consider refactoring.

userEvent.click(updateButton);
});

test("test update password with mismatching new password and confirm password", () => {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar blocks of code found in 2 locations. Consider refactoring.

#187419122 Seller Authentication and Two factor authentication for seller
Copy link

codeclimate bot commented Jun 25, 2024

Code Climate has analyzed commit 725aa7a and detected 4 issues on this pull request.

Here's the issue category breakdown:

Category Count
Duplication 4

View more on Code Climate.

@Jovz19200 Jovz19200 closed this Jun 25, 2024
@Jovz19200 Jovz19200 added bug Something isn't working and removed In progress a work in progress labels Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants