Skip to content

Installation

Overview · Configuration · Usage · Developer notes · FAQ

  • CS-Cart or CS-Cart Multi-Vendor 4.17.2 – 4.22.x, PHP 7.4 – 8.3 with the OpenSSL extension (CS-Cart requires it anyway).
  • HTTPS for passkeys. Browsers offer passkeys only on secure pages (https://, or http://localhost while testing). Authenticator apps work without HTTPS, but sign-in pages should always use it.
  • The server clock must be correct (NTP). Authenticator codes change every 30 seconds; the add-on accepts the previous and the next code to allow for small differences.
  • No cron job and no external service are needed.
  1. In the admin panel go to Add-ons → Manage add-ons, click the + (Upload & install add-on) button and upload kv_login_security_2fa-1.1.3.zip.
  2. Open the add-on settings and check the policies. By default two-step sign-in is required for administrators and optional for vendors and customers.
  3. Set up your own method first: Customers → Login security → My sign-in security (or open your profile, tab Sign-in security). Scan the QR code with your authenticator app, enter the code and save the 10 recovery codes.
  4. Enter your license key on the License tab (see License). Without a key the add-on works for 14 days.

With the required policy, every other administrator is asked to set up a method right after their password at their next sign-in. Tell your team before you install.

Upload the new zip over the installed add-on in Add-ons → Manage add-ons (choose the normal upload, not the safe way), or install the Upgrade Center package. Authenticator apps, passkeys, recovery codes, trusted devices, settings and the log are kept. On the next admin page the add-on completes the upgrade by itself (new tables, settings, texts and e-mail templates are added).

Do not uninstall to upgrade. Uninstalling removes every user’s methods on purpose (see below); users would have to set them up again.

From 1.0 to 1.1: nothing changes for your users until you turn new options on. E-mail codes start Off for every role, the new vendor-panel passkey switch takes the value of the admin-panel switch, recovery codes stay at 10, and the root-administrator reset by full administrators is on. One new default to check: API sign-in tokens of users with two-step sign-in are now refused (Protection tab, Allow API sign-in tokens); turn it on if a mobile app signs your customers in with tokens.

CS-Cart upgrades: the add-on does not change any core file, so upgrading CS-Cart itself (Upgrade Center) does not touch it. Its files live only in the add-on folders.

Add-ons → Manage add-ons → Login Security: 2FA & Passkeys → Uninstall removes the add-on’s tables (authenticator secrets, passkeys, recovery codes, trusted devices, log), settings, e-mail templates and texts. After that everybody signs in with the password only. Passkeys saved on the users’ devices for your store can be deleted there; they no longer work.

Disabling the add-on (status Disabled) switches the second step off at once and keeps all data.