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

fixing login with 2fa #437

Merged
merged 1 commit into from
Nov 21, 2024
Merged

fixing login with 2fa #437

merged 1 commit into from
Nov 21, 2024

Conversation

janet-barbie
Copy link
Contributor

@janet-barbie janet-barbie commented Nov 20, 2024

PR Description

This pull request fixes issue raised on login with two factor authentication

Description of tasks that were expected to be completed

I changed the secret value to match the value of secret key in user helper. also i removed two way verification token from response, and a user is not prompted to enter two way verification token while logging in with otp

Functionality

Login and enable two factor authentication you will be sent a notification email. try to Login an email with an otp code will be sent in your response .then loginWithTwoFactorAuthentication provide an otp code and your email

How has this been tested?

Tested using graphql appolo server

@codecov-commenter
Copy link

codecov-commenter commented Nov 20, 2024

Codecov Report

Attention: Patch coverage is 20.00000% with 28 lines in your changes missing coverage. Please review.

Please upload report for BASE (develop@5f5a2d1). Learn more about missing BASE report.

Files with missing lines Patch % Lines
src/resolvers/2fa.resolvers.ts 28.00% 18 Missing ⚠️
src/resolvers/userResolver.ts 0.00% 10 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             develop     #437   +/-   ##
==========================================
  Coverage           ?   31.23%           
==========================================
  Files              ?       87           
  Lines              ?     4213           
  Branches           ?     1233           
==========================================
  Hits               ?     1316           
  Misses             ?     2866           
  Partials           ?       31           

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


🚨 Try these New Features:

@ceelogre ceelogre temporarily deployed to fix-2fa-#303 - devpulse-backend PR #437 November 21, 2024 14:55 — with Render Destroyed
@Salim-54 Salim-54 requested a review from aimedivin November 21, 2024 15:25
@Salim-54 Salim-54 merged commit d900ec0 into develop Nov 21, 2024
2 checks passed
Copy link

@RWEMAREMY RWEMAREMY left a comment

Choose a reason for hiding this comment

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

Good job

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Needs Reviews A pull request need reviews to be merged Nova
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants