How-to

Security, MFA, and lockouts

Two-factor authentication (MFA: a code from an authenticator app, on top of your password or magic link) is optional for a regular account and mandatory for an admin. This page covers what “mandatory” means, how to recover someone who’s locked out, and the other settings that live on the Security tab alongside it.

Why admin MFA can’t be skipped

An admin can read every net and edit every user, so that account is the one most worth stealing. The requirement is checked on every admin-only action, not just at sign-in. An admin who hasn’t enrolled can still sign in, but is sent to enrollment (Profile → Security) and can’t reach the admin panel until they finish. An old session or a half-finished setup doesn’t get in.

An enrolled admin also uses the code to switch to admin mode, which turns off after 15 minutes without activity. A wrong code there counts toward the failed sign-in alerts below, the same as one at sign-in.

Enrollment itself (scanning a QR code into an authenticator app, confirming the first code, and saving the one-time backup codes) happens on each person’s own Profile → Security tab, not here; signing in is the page to send someone who asks how. This page is about what happens when that goes wrong for someone else.

Resetting someone’s two-factor authentication

If a person loses their phone or their authenticator app, they can’t get back in with their old codes, and each backup code works once. Reset it for them from the Users tab: find their row and click the two-factor reset icon (only shown for accounts that currently have MFA enabled). They’ll need to enroll again from scratch the next time they sign in.

A row in the admin Users table for W1PINE, with three action icons outlined in red and labeled: a pencil labeled "Edit User", a block icon labeled "Ban", and a key icon labeled "Reset password".
Reset password is the icon shown here after the pencil and the block icon; the two-factor reset sits next to it on any row where MFA is enabled. Edit User and Ban are covered in Users and roles.

An admin can’t use the reset on their own account; that would make the requirement meaningless.

The admin's own row in the Users table, with the two-factor reset icon outlined in red and greyed out because it is disabled.
An admin can reset anyone else's two-factor authentication from this table, but never their own. Ask another admin, or see the recovery path below if none is available.

If the locked-out admin is the only admin

Ask another admin to reset it from the Users tab as above. If there is no other admin account, someone with server access runs backend/scripts/reset_admin_mfa.py with that admin’s callsign or email. This can’t be done from a browser. See self-hosting if that’s not you.

Resetting a password

The same Users tab row has a Reset password icon, for someone who’s locked out and can’t retrieve a magic link either (email down, wrong address on file, and so on). It generates a one-time temporary password shown to you once (pass it along over a channel other than email if email is the problem). The person is told their password changed, but not what it is. They should set their own from Profile → Security.

Failed-login lockouts

Five wrong password attempts in a row locks that account out for 15 minutes. The threshold is fixed in the software and can’t be changed from this tab. It works alongside the IP-level protection below.

Security alerts

The Security Alerts card sends email when the activity log shows trouble. Each kind has its own switch and its own numbers, and each goes out at most once per account per period, so repeated attempts on an account don’t flood anyone’s inbox.

Click Save Settings on the card to apply changes.

Fail2Ban status

If the server this instance runs on has Fail2Ban configured, its status shows here: whether it’s installed and running, how many IPs are currently banned, and a manual Unban for any of them. The actual ban thresholds (how many failed attempts, over what window, for how long) are set in a server configuration file, not on this tab. See self-hosting to change them.

Session length

The Session Settings card on the Security tab, showing the session lifetime field in days and the "Rolling renewal" switch outlined in red.
Changes apply to sessions issued from this point on; anyone already signed in keeps the expiry they were issued.

Set how many days a signed-in session lasts before someone has to sign in again, and whether rolling renewal is on. When it is, a session with less than a week left refreshes on the next request, so someone using the app is not signed out mid-net. Changing either setting affects only sessions issued from then on; nobody already signed in is affected until they sign in again.

Also on this tab

Three more controls are on the Security tab:

Not here

Enrolling in MFA, replacing a lost authenticator (while you still have access), or turning MFA on or off for your own non-admin account all happen from your own Profile → Security tab, not the admin panel.