Sign-in, one-time codes & two-factor: how it works
This is how people get into the site and how accounts are protected. Customers sign in with email and password, or with Google, Facebook, Apple or a code sent to WhatsApp where these are set up. Staff use email and password, with a second code from their phone for sensitive roles.
Lesson 1 of 12 · How it works
How it works
A customer opens the sign-in page and uses «Email address» and «Password», or one of the «Continue with …» buttons that are switched on. «Continue with WhatsApp» sends a 6-digit code that is valid for 10 minutes.
«Forgot password?» emails a link that works once and expires after 30 minutes. Choosing a new password ends every open session of that account.
Staff sign in with email and password. Signing in with Google, Facebook, Apple or a WhatsApp code is off for staff unless it is allowed in the security settings.
With two-factor sign-in the person also types a 6-digit code from an authenticator app. As delivered it is required for super admin, administrator, accountant, HR manager and payroll officer.
To set it up, open «Two-factor authentication Two-factor authentication (2FA) asks for a second proof when you sign in: a 6-digit code from an authenticator app on your phone, besides the password. More words in the glossary», scan the QR code with the app, type the code and save the recovery codes. They are shown once; each one signs you in once if the phone is lost.
After repeated wrong passwords the account and the address are locked for a while, and every further failure doubles the wait, up to 60 minutes.
For staff the admin locks after 30 minutes without activity (the password continues where you were) and asks for a full sign-in after 12 hours. Customers who tick «Keep me signed in» stay signed in for 30 days on that device.
Where to find it
- Sign-in page
/login - Two-factor authentication
/admin/security/2fa - Forgot password
/forgot-password - Create account
/register
Settings that change it
- Settings → Security → Accounts & two-factor
/admin/settings/security?section=accounts - Settings → Security → Sessions
/admin/settings/security?section=sessions - Settings → Security → Rate limits & bans
/admin/settings/security?section=limits - System → Security → Security center
/admin/security
Checklist
Before you move on, check that you can:
- Open Two-factor authentication
- A customer opens the sign-in page and uses Email address and Password, or one of the Continue with … buttons…
- Forgot password? emails a link that works once and expires after 30 minutes.
- Staff sign in with email and password.
- With two-factor sign-in the person also types a 6-digit code from an authenticator app.
Tips and common mistakes
- Lost the phone with the authenticator? Choose «Use a recovery code instead» on the code screen, then set up two-factor again and make new recovery codes.
- Locked out after wrong passwords: wait and try again. An administrator can lift a block with «Unban» on the «Security» page.
- A staff member gets a refusal with Google or a WhatsApp code: staff accounts use the email and password form unless social sign-in for staff is switched on.
- «Remember this device for 30 days» skips the code on that browser only. «Forget remembered devices» on the two-factor page ends that.