Lost your two-factor phone? How to sign in again
If your phone is lost, reset or replaced, you can still get in. Which way depends on whether you kept your recovery codes and who you are.
With a recovery code
- Sign in with your username and password as usual.
- On the Verification page, enter one of your recovery codes in Authentication code.
- Click Verify.
- Open Two-Factor Auth, enter your Current password under Disable and click Disable.
- Set up two-factor again with your new phone. You get new recovery codes.
Each recovery code works once.
Without recovery codes
| Who you are | Who can turn your two-factor off |
|---|---|
| Customer (account owner) | Your hosting provider |
| Team member | The account owner: Team Members → Turn off 2FA next to you |
| Reseller | The server administrator |
| Administrator | Anyone with root access to the server |
The server administrator turns off two-factor for an administrator, reseller or customer by logging in to the server as root and running, with the username:
sahaab 2fa:disable USERNAME
The person then signs in with the password only and can set up two-factor again.
Good to know
- Before you lose your phone: keep the recovery codes somewhere safe, or use an authenticator app that backs up its codes.
- A team member's two-factor is turned off by the account owner in the control panel, not with the command above.
- After turning it off, set it up again at once, so the login is protected.
- The mobile app: if the lost phone was signed in to the app, sign it out under Phones signed in to the app on the Two-Factor Auth page.
Common questions
My recovery codes don't work.
Each code works once, and generating new codes makes the old ones invalid. Enter the code exactly as shown (spaces and dashes do not matter).
It says "Too many wrong codes. Please log in again."
After 5 wrong codes the password is asked again. Start over from the login page.
Thank you — this helps us improve the article.
Still stuck?
Ask the AI about your exact situation — it answers from this knowledge base — or contact us.
Related articles
- How to enable two-factor authentication (2FA) for your login
Protect your admin panel or control panel login with a 6-digit code from an authenticator app, save your 10 recovery codes, and sign in with 2FA.
- Two-factor authentication for team members
How team members protect their own control panel login with two-factor authentication, and how the account owner turns it off when a member loses a phone.
- How to set up brute force protection for panel logins
Block IP addresses after repeated failed logins to the admin panel, control panel and API: set max failures, the time window, block time and whitelisted IPs.