question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deleting 2FA App requires 2FA App's code

See original GitHub issue

Describe the bug Unable to delete 2FA App (Google Authenticator) without 2FA app’s code

To Reproduce Steps to reproduce the behavior:

  1. Go to Account > Security
  2. Enable 2FA and add Google Authenticator (or MS Authenticator etc)

Expected behavior Be able to delete 2FA app without the code from that specific 2FA app. If you lose your phone for example…

Screenshots N/A

Desktop (please complete the following information):

  • OS: Windows
  • Browser Chrome
  • Version 78.0.3904.108

Smartphone (please complete the following information):

  • Device: N/A
  • OS: N/A
  • Browser N/A
  • Version N/A

Additional context This can be found in user-security-totp-delete.controller.js > deleteDoubleAuthTotp it calls DoubleAuthTotpService.disable code before deleting however API enforces 2FA id AND 2FA code for /me/accessRestriction/totp/{id}/disable so it returns an error and does not proceed to DoubleAuthTotpService.delete.

This should be bypassed and go straight to DoubleAuthTotpService.delete.

I am happy to submit a pull request for this but would like to get some feedback first on the intended functionality and side affects of just skipping DoubleAuthTotpService.disable as I’m not too familiar with this code/api

The delete popup should also be altered to not require the 2FA code and instead have a confirm delete popup

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:3
  • Comments:22 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
antleblanccommented, Dec 8, 2021

Thanks everyone for your feedback.

Just wanted to let you know that this issue has been reported to the team and we will keep you posted once a patch will be deployed.

Thanks, Antoine

3reactions
airmoicommented, Jun 21, 2021

one year later, still not fixed

Read more comments on GitHub >

github_iconTop Results From Across the Web

Delete, Hide, or Decrypt Two Factor Authentication (2FA ...
Open the Authy Android app. · Tap and hold the desired authenticator account, and then select Remove. · A notification window will be...
Read more >
Deleting Google Authenticator - AskAuckland
How do I delete Google Authenticator off one device only? You can log into MyToken to manage unlinking two-factor authentication from your device....
Read more >
Common questions about the Microsoft Authenticator app
A: Adding Authenticator to your new device doesn't automatically remove the app from your old device. Even deleting the app from your old...
Read more >
Manage two-factor authentication for your Apple ID from iPhone
Obtain the verification code on your iPhone or another trusted device ... With two-factor authentication, you need an app-specific password to sign in...
Read more >
Change or Disable the Authenticator App in Remote Support
As an administrator, you may remove a user's current authenticator app. Go to the user's settings page, and under Account Settings > Two...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found