Reputation: 545
I have set 2FA on my gitlab account, and then deleted the google authenticator app on my phone. When I tried to login again, the recovery code that I've inserted didn't work, and so I downloaded the google authenticator app again, but the code in the authenticator app does not work when I try to sign in (I get "invalid two-factor code"). Changing my password didn't work :( Any help?
Upvotes: 2
Views: 10022
Reputation: 121
I landed on this page but my problem was very simple. I was trying to use my authenticator app, but actually the code had been sent to my email 🤦♂️
Upvotes: 0
Reputation: 325
If your recovery code doesn't work, contact to Gitlab administrators. They will disable two-factor authentication for your account. For the future, you should better save QR code and keep it in a safe place. Then, if you lose your phone or delete Google Authenticator, you could easily restore it.
Upvotes: 1