Lost your two-factor phone: sign in without the code

Updated 2026-10-29

On this page
  1. Symptoms
  2. Causes
  3. Fix
  4. Good to know
  5. Still not working?

With two-factor sign-in on, the login asks for a 6-digit code after your password. Without the phone, use one of the 10 recovery codes you saved when you turned it on. Without those, an administrator turns two-factor sign-in off for your login from the server.

Symptoms

  • After the password, the Verification page asks for an Authentication code and you do not have the app.
  • The code from the app is refused every time.

Causes

  1. The phone was lost, reset or replaced without moving the authenticator app.
  2. The phone's clock is wrong — codes are valid for 30 seconds and depend on the exact time.
  3. You use the entry of another login in the app (several servers or accounts).

Fix

Use a recovery code

  1. On the Verification page, type one of your recovery codes into Authentication code.
  2. Click Verify.

Each recovery code works once. After signing in, open Two-Factor Auth, click Disable, then set it up again with the new phone (Enable two-factor authentication) and save the new recovery codes. To get new codes without changing the phone, enter your current password and click Generate new codes.

Fix the phone's clock

Set the phone to take its date and time from the network automatically, then try a fresh code.

No phone and no recovery codes

  • Customers and resellers: ask your hosting provider (or the administrator) to turn two-factor sign-in off for your username.
  • Administrators do this on the server as root:
    sahaab 2fa:disable username

    The command answers Two-factor authentication disabled for username. Sign in with the password

    only, then turn it on again under Two-Factor Auth with the new phone.

Note: the command works for logins with a username (administrators, resellers, customers). A team member who lost the phone asks the account owner: in Team Members, the owner clicks Turn off 2FA next to the member.

Good to know

  • Keep the recovery codes outside the phone: in a password manager or on paper.
  • Authenticator apps that sync to the cloud (for example 1Password or Authy) move the codes to a new phone by themselves.

Still not working?

If the password is refused before the code is asked, see Cannot log in to the control panel.

Was this article helpful?

Still stuck?

Ask the AI about your exact situation — it answers from this knowledge base — or contact us.