Login Security: 2FA & Passkeys
Add-on ID: kv_login_security_2fa · Edition: CS-Cart & Multi-Vendor · Latest version: 1.1.5 · Compatible with: CS-Cart & Multi-Vendor 4.17.2 – 4.22.x, PHP 7.4 – 8.3 · Changelog: view · Product page: Login Security: 2FA & Passkeys
Login Security adds a second sign-in step to your store. After the password, administrators, vendors and customers confirm with a 6-digit code from an authenticator app, a one-time code sent by e-mail, or a passkey (Face ID, Touch ID, Windows Hello, Android screen lock or a security key). A leaked or guessed password is no longer enough to take over an account. Passkeys can also replace the password altogether: one tap on Sign in with a passkey and the customer is in. CS-Cart itself has no second sign-in step, and this add-on works with every way your customers sign in: password, e-mail one-time password, social sign-in and phone codes.
- Policies per user type: make two-step sign-in required for administrators (the default), optional or off; the same for vendor administrators and customers. Required users set it up right after their password at the next sign-in, so nobody is locked out.
- Authenticator apps (TOTP): Google Authenticator, Microsoft Authenticator, 1Password, Authy and any app with 6-digit codes. A QR code is drawn on your own server; the secret never leaves it and is stored encrypted.
- Passkeys (WebAuthn): as a second step or as a passwordless sign-in on the storefront and in the admin and vendor panel. Synced passkeys (iCloud Keychain, Google Password Manager) and security keys work.
- E-mail one-time codes (new in 1.1): per role, as a method users turn on or always for users without an app or passkey. Codes are hashed, single use, bound to the browser, expire in minutes, rate limited, and the sign-in stops if the e-mail cannot be sent.
- Recovery codes: 10 single-use codes per user by default (0 – 20), shown once and stored only as keyed hashes.
- Trusted devices: “Don’t ask again on this device for 30 days”, with one click to sign out of all of them. Off for administrators unless you allow it.
- Brute-force protection: after 5 wrong codes the second step is locked for 15 minutes and the account owner gets an e-mail. The password is always needed first, so a lock never shuts anyone out for good.
- Security e-mails: new sign-in method, removed method, recovery code used, lock, reset by an administrator.
- Admin overview: who uses two-step sign-in, per user type; reset or unlock a user; a security log of every second step, failure, lock and change.
- Safe recovery for a locked-out administrator, no back door: recovery codes; a reset by another administrator with full privileges (for the root administrator only after typing their own password); a console command on the server; a server-side emergency switch. Resets are logged and end all sessions of the user.
- No bypass through the API: API sign-in tokens of users with two-step sign-in are refused (setting); administrator API keys keep working.
- Renamed admin.php / vendor.php supported: the panels are detected the CS-Cart way, not by file name.
- No core files changed: the add-on uses CS-Cart hooks only, so CS-Cart upgrades and the Upgrade Center leave it alone, and it upgrades itself in place.

Documentation
Section titled “Documentation”| Page | Contents |
|---|---|
| Installation | Requirements, installing, upgrading, uninstalling |
| Configuration | Policies, methods, protection settings, license |
| Usage | Setting up methods, signing in, passkeys, recovery, the admin pages, Multi-Vendor and Ultimate |
| Developer notes | Standards and security, sign-in flow, data model, endpoints, hooks, file map |
| FAQ | Common questions |
Compatibility
Section titled “Compatibility”| CS-Cart / Multi-Vendor | 4.17.2 – 4.22.x (Ultimate and Multi-Vendor editions) |
| PHP | 7.4 – 8.3 (within what your CS-Cart version supports) with OpenSSL (a CS-Cart requirement); no other extension or library |
| Themes | Responsive and themes based on it (Bright, Nova and others); admin panel of 4.17 – 4.21 |
| Full page cache (4.21) | Supported: the passkey button is the same for every visitor, the second-step pages are never cached |
| Editions | CS-Cart, CS-Cart Ultimate, Multi-Vendor, Multi-Vendor Ultimate (and the Multi-Vendor plans such as Plus); one license per store |
| Other sign-in add-ons | Built-in Social login, e-mail one-time password, Social Login Pro and Phone OTP Login by Kavio Labs: their sign-ins get the second step too |
| Passkeys | Any browser with WebAuthn (all current browsers); HTTPS on a real domain (or localhost for testing) |