ServerAvatarDocs
Security

Two-factor authentication

Turn on a second login step with email codes, connect an authenticator app such as Google Authenticator, and keep one-time backup codes.

With two-factor authentication (2FA), Central asks for a code after your password. A stolen password alone then isn't enough to sign in. You set it up on your own account under Account, Security. It applies to your account everywhere, not to one organization.

There are three parts:

  • Email codes: Central emails you a 6-digit code each time you sign in.
  • Authenticator app: an app such as Google Authenticator makes the code instead of email. You can only add it after email codes are on.
  • Backup codes: six one-time codes for the day you can't get a login code.

Turn on two-factor authentication

  1. Open the account menu in the top-right corner, select Account, then open the Security tab. The Two-factor authentication card says Currently disabled.

    The Two-factor authentication card with the switch off, and Email codes, Authenticator app and Backup codes listed as not set up

  2. Turn on the switch. Central asks for no password to turn it on, and shows "Two-factor settings updated."

  3. The dialog Save your backup codes opens with six codes in the form XXXX-XXXX. Select Download codes to save them as serveravatar-backup-codes.txt, or Copy codes. Then select I have saved my codes.

    The Save your backup codes dialog with the Download codes, Copy codes and I have saved my codes buttons

The dialog also shows when the codes were generated and how many are used and still available. The codes are shown only once. Closing the dialog clears them from the page, and Central can't show them again. If you lose them, create new ones (see below).

Central also emails you "Two-factor authentication turned on". That email lists the same backup codes. Keep the codes in a password manager and delete the email once they are saved.

After this, Email codes shows Enabled. The card shows each method on its own row:

The Two-factor authentication card with the switch on, Email codes enabled, a Set up button for the authenticator app and 6 of 6 backup codes remaining

To see how the code is asked for when you sign in, see Enter the two-factor code.

Connect an authenticator app

You need email codes on first. The Set up button on the Authenticator app row only shows while two-factor authentication is on.

  1. On the Authenticator app row, select Set up. The dialog Connect your authenticator opens.

    The Connect your authenticator dialog with the QR code and manual setup key covered, the Authenticator code field and the Verify and enable button

  2. In your app, scan the QR code. Or choose to enter a key by hand and type the Manual setup key.

  3. Read the note: once the app is connected, Central no longer sends codes by email. You sign in with a code from the app, or with a backup code.

  4. Type the 6-digit code from the app in Authenticator code, then select Verify and enable. The code must be six digits, and it must be a correct one: the app is turned on only after one correct code.

The setup key is valid for 10 minutes. The dialog says "Setup expires at" with the time. After that it shows "This setup has expired. Start again to generate a new key." Select Restart setup to get a new key.

Once the app is on, the Authenticator app row shows Enabled and a Remove button, and Email codes shows Disabled. Central emails you "Google Authenticator turned on".

Go back to email codes

  1. On the Authenticator app row, select Remove.
  2. In Remove authenticator?, enter your Current password and select Confirm.

Login codes are sent by email again. Your existing backup codes keep working. Central emails you "Google Authenticator turned off".

Replace your backup codes

The Backup codes row says how many are left, for example "6 of 6 codes remaining". Each code works once. The text turns to a warning colour when two or fewer are left.

  1. On the Backup codes row, select New codes.
  2. In Replace your backup codes?, enter your Current password and select Confirm.
  3. Save the new six codes in the Save your backup codes dialog, as in the first section.

All previous backup codes stop working at once. Central emails you "New backup codes generated" with the new codes.

Turn off two-factor authentication

  1. Turn the switch off.

  2. In Turn off two-factor authentication?, enter your Current password and select Confirm.

    The Turn off two-factor authentication dialog asking for the current password

Turning it off switches off email codes and the authenticator app, and deletes all backup codes. The dialog says so: "Email verification and your authenticator will be disabled. All backup codes will stop working." Central emails you "Two-factor authentication turned off". Each of these changes is also written to your account activity log.

Limits

  • Backup codes: always six, in the form XXXX-XXXX (letters and digits, without the easily confused I, O, 0 and 1). Each works once.
  • Authenticator setup key: valid for 10 minutes. The code is exactly 6 digits.
  • Turning off, removing the app, creating new codes and confirming the app are limited to 5 tries per minute. Over the limit you see "Too many requests. Try again in n seconds."

Who can do this

  • Any signed-in user, for their own account. No organization permission is involved.
  • The personal API token (Account, API access) can't change these settings. A request with it fails with api_token_not_allowed. See Authentication.

Common errors

  • The password is incorrect. The Current password you typed is not your account password. Nothing changed.
  • The code is incorrect. Please try again. The code from the app is wrong. Type the current code shown in the app.
  • The setup has expired. Please start the authenticator setup again. More than 10 minutes passed. Select Restart setup.
  • Turn on two-factor authentication by email first. An authenticator app can only be added while email codes are on.
  • Google Authenticator is already on. The app is connected. Remove it first if you want to set it up again.
  • Too many requests. Try again in n seconds. You went over the 5 tries per minute. Wait and try again.

On this page