Skip to content

Two Factor

github-actions[bot] edited this page Dec 4, 2026 · 1 revision

Two-factor sign-in

With two-factor sign-in, signing in needs a code from an authenticator app on your phone after the password, so a password that became known is not enough.

Turning it on

In the account menu, open Two-factor sign-in and set it up:

  1. Scan the picture with an authenticator app (for example the one built into your phone's password manager, Google Authenticator, Microsoft Authenticator or 1Password), or type the key it shows.
  2. Enter the code the app shows. Two-factor sign-in is on from now on.
  3. Keep the ten backup codes somewhere safe. Each one works once instead of a code from the app, for when the phone is not at hand. They are shown only now; you can make new ones later (the old ones then stop working).

Turning it off, and making new backup codes, needs a code from the app or a backup code.

Signing in

After the password, enter the code from the app or one of your backup codes. A sign-in that waits too long for the code starts over.

AI programs and scripts that use your access tokens are not affected: tokens work without a code. Tokens are made and removed only after signing in with your password and code.

Lost your phone?

  • Sign in with a backup code, then turn two-factor sign-in off and on again with the new phone.
  • No backup codes left: an administrator of all sites sets a new password for you under People; that also turns your two-factor sign-in off.
  • The last administrator: owncms admin reset-password you@example.com on the server sets a new password and turns two-factor sign-in off (see Reference).

The app secrets are kept sealed with the server's secret key (secret.key in the data directory). Without that key, two-factor sign-in cannot be checked; back it up with the database.

Clone this wiki locally