Reset a user
When a user lost their phone and recovery codes, an admin opens the user's profile, clicks the Two-factor authentication tab and Reset two-factor authentication. The user's method, recovery codes and trusted devices are removed and the user gets an email. If it's required for them, they set it up again at the next sign-in. Admins can also remove a user's trusted devices there and see their activity.
Emails
The emails are in Settings > Email templates, under Two-factor authentication: sign-in code, turned on, turned off, reset, locked, new trusted device and recovery code used. Codes are not saved in the email log.
Security
- The user is not signed in until the code is accepted.
- Authenticator keys are saved encrypted. Recovery codes, email codes and trusted device tokens are saved only as hashes.
- Each code works once. Wrong codes are counted per user, so a new browser doesn't get new tries.
- The QR code is made on your server. The key is never sent to another service.
Problems
| The app code is always wrong | Check the time of the server and the phone. Turn on automatic time on the phone. Codes change every 30 seconds. |
| The email code doesn't arrive | Check Settings > Email and the spam folder. Click Send a new code after one minute, or use a recovery code. |
| A user lost their phone | The user signs in with a recovery code, or an admin resets the user. |
| The only admin is locked out | Wait for the lock time, or sign in with a recovery code. If that's not possible, rename the plugin folder in plugins on the server to turn it off, sign in, set the folder name back. |
| Codes are asked on every sign-in | Tick Remember this device. It needs browser cookies and Remember devices for (days) above 0. |
| An authenticator stopped working after moving the site | The encryption key of the app changed. An admin resets the user, then the user sets it up again. |