Skip to content

Users deleting 2fa without removing backup keys #28

Open

Description

@MaxHayman

Hey,

I get A LOT of support requests from people who remove otp but forget to remove backup keys and log out.

Can we have some option which requires Backup keys to be removed before or when they remove OTP?

Activity

  1. paul999 commented on Sep 20, 2020

    @paul999
    Owner

    Hmm, I am not fully sure what the best way to solve is. Technically, it is a perfect valid situation to just have backup keys, so I don't want to really force it to have them deleted. But I can see how it might be causing issues. I will need to think a bit more about this

  2. Aminuxer commented on May 5, 2022

    @Aminuxer

    Static backup keys for users without main 2FA secrets can be found by this SQL query:

    SELECT t1.*
    FROM `phpbb_tfa_back_reg` t1
    WHERE t1.user_id NOT IN
         (SELECT DISTINCT t2.user_id FROM phpbb_tfa_otp_reg t2)
    
  3. Neustradamus commented on Jun 14, 2026

    @Neustradamus

    @paul999: Have you thought about this?

  4. MaxHayman commented on Jun 14, 2026

    @MaxHayman
    Author

    Would be nice to have an option to "remove backup keys when OTP is removed"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions