Repository navigation
Two Step Sign In
With two-step sign-in, Tribu asks for a code from an authenticator app on your phone after your password. Someone who knows your password still cannot sign in without your phone.
It is optional and set up by each person for their own account, unless the instance admin requires it for everyone. It applies to signing in with email and password. Accounts that sign in with Single Sign-On (OIDC) use the identity provider's own two-step sign-in instead.
- Open Settings → Account → Two-step sign-in and choose Turn on.
- Enter your password.
- Scan the QR code with an authenticator app, for example Aegis, 2FAS, Google Authenticator, or Microsoft Authenticator. If scanning does not work, type the key shown below the code into the app. Setting it up in the Tribu app on the same phone? Choose Open in authenticator app, or Copy key and paste the key into the app.
- Enter the 6-digit code the app shows and choose Turn on.
- Save the 10 recovery codes, for example with Download or Copy codes, somewhere safe outside Tribu. They are shown only once. Tick I have saved my recovery codes and choose Done.
From now on, the login page asks for a code after your password.
Each recovery code works once, in place of a code from the app. Use one when your phone is not at hand. Settings show how many are left. To get a fresh set, turn two-step sign-in off and on again.
Open Settings → Account → Two-step sign-in, choose Turn off, and enter your password and a code from the app or a recovery code. While the instance admin requires it, it cannot be turned off.
The instance admin can switch on Require it for everyone who signs in with a password in Manage your family → Sign-in.
- Turn it on for your own account first; until then Tribu refuses the switch, so you cannot lock yourself out.
- Members without it see only the setup after signing in, until they have turned it on. The mobile app asks them to set it up in the web app first.
- Accounts that sign in only with Single Sign-On (OIDC) are not affected, nor are API tokens and phone sync. An account with both a password and single sign-on is asked to set it up.
-
Ask a family admin. In Manage your family → Members, an admin opens your profile and chooses Reset two-step sign-in. You then sign in with your password only and can set it up again. The reset appears in the audit log. Admins cannot reset their own; another admin can.
-
On the server. If nobody in the app can help, for example the only admin lost phone and codes, whoever runs the server can turn it off for any account:
docker exec tribu-backend python -m app.reset_mfa <email>
tribu-backendis the container name from the default Compose file;docker psshows yours.
- After five wrong codes in a row, the code step pauses for 15 minutes for that account.
- A code can be used only once. If the login page refuses a fresh code, wait for the next one.
- Codes depend on the time. If they are refused again and again, check that the phone's clock is set automatically.
- The mobile app can sign in only with a version that asks for the code.
- Phone sync (CalDAV and CardDAV) and API tokens keep working without a code. They are created from a signed-in session; revoke them under Settings → API Tokens if a device is lost.
- The secret behind the codes is stored in the Tribu database and included in backups. Keep backups as private as the database.