How to reset 2FA for a user #2121
Artur opened 2 years ago

I have an admin access to OneDev installation but one of our team members lost his 2FA setup and cannot login. How can I reset or turn off 2FA for this user, so he can login using password only and configure 2FA again?

  • Robin Shen changed state to 'Closed' 2 years ago
    Previous Value Current Value
    Open
    Closed
  • Robin Shen commented 2 years ago

    Just tell the user to reset the password, and the 2FA will be reset also.

  • Artur commented 2 years ago

    The user is authenticated against external authenticator, so, my understanding is that it would not work. Am I correct?

  • Robin Shen commented 2 years ago

    Also works for externally authenticated users. However the user will be authenticated via internal database after reset. And you may change it back to use external authenticator.

  • Artur commented 2 years ago

    Thank you.

  • Robin Shen commented 2 years ago

    @kobit sorry i was wrong. Password reset will not reset 2FA (and should not). You will need to run below sql against database:

    update o_user set o_twoFactorAuthentication=null where o_name = 'loginNameOfUser'

    Then restart OneDev afterwards.

    In the meantime, an improvement reques to reset 2FA by admin is created: OD-2122

1/1
Type
Question
Priority
Normal
Assignee
Labels
No labels
Issue Votes (0)
Watchers (2)
Reference
OD-2121
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover