v0.9.3
This commit is contained in:
commit
22f164046e
286 files changed
+19176
No files matched your search
@@ -0,0 +1,37 @@
|
||||
# Two-step login
|
||||
|
||||
Two-step login means you type a code of 6 digits from an app on your phone after your password. Someone who only has your password cannot get in. This page is for the people who use the manager, and for whoever sets a site up.
|
||||
|
||||
## If you use the manager
|
||||
|
||||
**Setting it up** (about two minutes): open *My account*, scroll to *Extra safe login*, press *Set up* and follow the steps.
|
||||
|
||||
1. Install an **authenticator app** on your phone. Google Authenticator, Microsoft Authenticator and 2FAS all work, and so does the one in a password manager.
|
||||
2. Put your account in the app. On a computer, **scan the picture** with the app. On the phone you are using right now, you cannot scan your own screen: press **Open in the app** instead, and the app opens by itself. If neither works, or you keep your codes in a **password manager such as Bitwarden**, use the **setup key under the picture**: add a key (or secret) by hand, paste it, and leave the other options as they are (time based, 6 digits). The key is shown in groups of four to be easy to read; the *Copy the key* button copies it in one piece.
|
||||
3. Type the 6 digits the app shows, and press *Turn on*.
|
||||
4. You get **eight recovery codes**. Save them somewhere safe, for example in a password manager (the *Download* button makes a text file). Each works once, instead of the 6 digits, if you lose your phone. They are shown only this once.
|
||||
|
||||
From then on, after your password the manager asks for the 6 digits, once for each time you log in. The app shows a new code every 30 seconds; a code works once.
|
||||
|
||||
**Lost your phone?** On the question for the code, press *I lost my phone* and type a recovery code. Then set it up again with the new phone (*My account*: *New recovery codes* gives you fresh ones). No recovery codes either? Ask someone who manages accounts to reset your second step; you set it up again at your next login.
|
||||
|
||||
## If you are a super admin
|
||||
|
||||
Two-step login is **required** for super admins. You get **30 days** from the first time the manager sees you without it. A yellow line at the top of every screen counts the days down. When the days are over, the manager shows nothing but the screen to set it up, until you have.
|
||||
|
||||
You cannot turn it off once it is required of you.
|
||||
|
||||
## Groups and accounts
|
||||
|
||||
- A group can **require** it: on the group form, tick *Requires two-step login*. Everyone in that group then has the same 30 days. An account that is in several groups has to as soon as one of them says so.
|
||||
- Everyone else can switch it on for themselves, and off again (with their password and a code).
|
||||
- On the accounts screen you see who has it. Someone who manages accounts can **reset** the second step of an account they outrank, for a lost phone; the account sets it up again at its next login. A reset does not give the 30 days back. Nobody resets their own that way.
|
||||
- The last super admin who has lost everything: `php artisan manager:two-factor-reset [email protected]` on the server.
|
||||
|
||||
## If you set a site up
|
||||
|
||||
- It is a gate of the manager, not part of a login, so it works with your own login as well as the manager's. The screens of your own site are not protected by it.
|
||||
- `config/manager.php`, `two_factor`: `enabled` (env `MANAGER_TWO_FACTOR`, set `false` to switch the whole feature off), `super_admins` (`MANAGER_TWO_FACTOR_SUPER_ADMINS`), `grace_days` (`MANAGER_TWO_FACTOR_GRACE_DAYS`, 30) and `issuer` (the name the app shows; the name of the manager by default). It is not on the settings screen on purpose.
|
||||
- **When you upgrade**, every super admin starts its 30 days at its next visit. Tell them first.
|
||||
- It needs the table `manager_two_factor` and the column `groups.require_two_factor`, which the migrations add (a site that has its own `groups` table keeps it; the column is added).
|
||||
- The reasons and what is not built (trusted devices, SMS, passkeys) are in ADR-0016.
|
||||
Reference in new issue
Block a user