FAQ
Overview · Installation · Configuration · Usage · Developer notes
Security FAQ (answers for marketplace owners)
Section titled “Security FAQ (answers for marketplace owners)”Does it work when we renamed admin.php or vendor.php?
Yes. Rename the file and set $config['admin_index'] / $config['vendor_index'] in config.local.php, as CS-Cart recommends. The add-on tells the admin panel, the vendor panel and the storefront apart with CS-Cart’s own area and account type (the constants the entry script defines), never by the file name, and builds every link with CS-Cart’s URL function. Tested with renamed admin and vendor scripts (sign-in, second step, passkey sign-in).
Can we use a one-time code by e-mail as the second step? Yes, since 1.1, per role (administrators, vendor administrators, customers): Off, Users can turn it on, or Always, no setup needed (every user of the role without an authenticator app or passkey gets a code at each sign-in). Codes are 6 digits, hashed, single use, bound to the browser, valid 2 – 30 minutes, 5 tries, and rate limited (1 per minute, 5 per 15 minutes per account). If the e-mail cannot be sent, the sign-in stops: it never continues without the second step.
Our root administrator is locked out. What now?
In this order: a recovery code; another administrator with full privileges resets them from the root administrator’s profile (tab Sign-in security) after typing their own password again; on the server, php admin.php --dispatch=kv_login_security_2fa_cli.reset --user=<e-mail>; or the emergency switch define('KV_LS2FA_EMERGENCY_OFF', true); in config.local.php. Every reset is logged with who did it and ends all sessions of the user. See A locked-out administrator.
Is there a master code, a support unlock or a back door? No. Every way back needs an administrator with full privileges, or access to your server’s files or shell. We (Kavio Labs) cannot unlock or reset anything in your store, and the license server is never involved in a sign-in.
How many recovery codes do users get? 10 by default; you choose 0 – 20. With 0 no codes are created and users who lose every method need an administrator (administrators: the console command).
Can passwordless passkey sign-in be limited to some roles? Yes: separate switches for the storefront (customers), the admin panel and the vendor panel. Passkeys as a second step stay available everywhere.
Can the REST API or the mobile app bypass the second step? No. The API cannot ask for a second step, so API calls with a sign-in token of a user who has two-step sign-in are refused (401) unless you allow them (Protection tab). Administrator API keys are separate credentials you create per administrator and keep working. AJAX sign-in (pop-ups) and the vendor panel go through the same second step.
What happens when the license server is offline? Nothing for your users. The second step never depends on the license; the add-on keeps working for 14 days without a successful check, and even after that only new setups and the passkey sign-in buttons pause. Nobody is locked out by the license.
Does a CS-Cart upgrade remove or break it? Does it change core files? It changes no core file: everything runs through CS-Cart hooks and lives in the add-on’s own folders and tables, so the Upgrade Center does not touch it. The add-on upgrades itself in place (upload the new zip over it); users’ authenticator apps, passkeys and codes are kept.
Which editions and versions? CS-Cart, CS-Cart Ultimate, Multi-Vendor and Multi-Vendor Ultimate (including Multi-Vendor plans such as Plus), versions 4.17.2 – 4.22.x. Version 1.1 was tested on CS-Cart 4.17.2 and Multi-Vendor 4.17.2 (PHP 8.1); 1.0 was also tested on Multi-Vendor 4.21.2 (PHP 8.3).
Can I lock myself out of the admin panel?
Section titled “Can I lock myself out of the admin panel?”No. The second step comes after your password, and with the required policy you are asked to set up a method, not refused. If you lose your phone, use a recovery code, ask another administrator to reset your two-step sign-in, run the console command, or add define('KV_LS2FA_EMERGENCY_OFF', true); to config.local.php on the server: the admin and vendor panel then skip the second step until you remove the line. A lock after wrong codes lasts 15 minutes (setting) and can only be caused by someone who knows your password. If you use e-mail codes for administrators, keep a second method (app or passkey) or recovery codes for the case that your mail server fails.
Which authenticator apps work?
Section titled “Which authenticator apps work?”Every app for time-based codes (TOTP): Google Authenticator, Microsoft Authenticator, 1Password, Authy, Bitwarden, Apple Passwords and others. The codes are created on the phone; no SMS and no external service are involved.
What is a passkey and do I need special hardware?
Section titled “What is a passkey and do I need special hardware?”A passkey is a key pair saved on the user’s phone, computer or password manager and unlocked with the fingerprint, face or screen lock. Current iPhones, Android phones, Macs and Windows PCs (Windows Hello) support passkeys, as do security keys. Synced passkeys (iCloud Keychain, Google Password Manager) are available on all devices of the user.
Do social sign-in and phone codes skip the second step?
Section titled “Do social sign-in and phone codes skip the second step?”No. A Google account, a phone number or an e-mail code is one factor, just like a password. Every sign-in that ends in a CS-Cart account, including the built-in Social login, the e-mail one-time password of CS-Cart 4.21, Social Login Pro and Phone OTP Login, asks enrolled users for their second step. A passwordless passkey sign-in is the exception: the passkey with fingerprint, face or PIN already counts as both steps.
Do the mobile app and the REST API need the second step?
Section titled “Do the mobile app and the REST API need the second step?”The REST API has no interactive page, so it cannot ask for a second step. Since 1.1, API calls with a sign-in token (/api/auth_tokens, the storefront REST API of mobile apps) are refused for users who have two-step sign-in, so a password alone is never enough through the API. If your mobile app signs customers in with tokens, either keep two-step sign-in off for customers or turn on Allow API sign-in tokens for users with two-step sign-in (Protection tab) and accept that the app uses the password only. Administrator API keys are not affected.
Why does the code from my app not work?
Section titled “Why does the code from my app not work?”Check that the phone’s clock is set automatically. The add-on accepts the previous, current and next code. A code can be used only once: a code that just confirmed the setup can’t sign in again; wait for the next one.
E-mail code not sent (“The e-mail with the code could not be sent”)
Section titled “E-mail code not sent (“The e-mail with the code could not be sent”)”The sign-in page stays generic on purpose. The reason is in the security log (Customers → Login security, Users → Login security in CS-Cart 4.21, then Security log): filter by E-mail code not sent and read the Detail column. Checklist:
- Sender address. The code e-mail is sent from the Site administrator e-mail of Settings → Company (on CS-Cart Ultimate: of the storefront). If the mail server rejects it, the add-on tries once more with the User department e-mail, the sender CS-Cart itself uses for password recovery mails (1.1.3 and later). Many SMTP servers (hosted mail, Gmail/Google Workspace, Microsoft 365) only accept the mailbox they sign in with as sender: set at least one of the two addresses to that mailbox. A log detail such as “553 … Sender address rejected” points here. When the fallback was needed, the E-mail code sent entry says “sent with the users department sender”, so you can correct the Site administrator address.
- E-mail template. Design → E-mail templates: Login security: sign-in code must exist and be active for customers and for administrators. Detail: “e-mail template … is missing or disabled”.
- Template mode. Stores that still use the old file-based e-mail templates (Settings → Appearance) cannot send the add-on’s e-mails. Detail: “old file-based e-mail templates”.
- Mail settings. Settings → E-mails: send a test e-mail. Any other transport error (connection, TLS, authentication) is shown in the Detail column as reported by the mail server.
The code itself, passwords and credentials never appear in the log. A code is only kept when the e-mail really left the store; without it the sign-in stops (fail closed), so users can still use an authenticator app, a passkey or a recovery code.
Does it work with the full page cache of CS-Cart 4.21?
Section titled “Does it work with the full page cache of CS-Cart 4.21?”Yes. The passkey button is the same for every visitor and all second-step pages and calls are never cached. 1.1 adds no storefront output to cached pages.
Can a stolen session survive a reset?
Section titled “Can a stolen session survive a reset?”No. When another administrator or the console resets a user, all of that user’s sessions end at their next request, a saved remember me sign-in is refused, and the user’s API sign-in tokens are deleted. A remember me sign-in saved before a user set up their newest method is refused too, so it cannot skip the new second step.
Will customers be forced to use it?
Section titled “Will customers be forced to use it?”Only if you set the customer policy to required. The default is optional: customers decide on their Sign-in security page. New registrations and checkouts are never interrupted.
What happens if the license lapses?
Section titled “What happens if the license lapses?”Without a valid license (no key after the 14-day start period, an invalid or revoked key, a domain the license does not cover, or no successful check for 14 days), no new authenticator apps or passkeys can be added and the passkey sign-in buttons are hidden. Users who already set up two-step sign-in are still asked for their code or passkey, and recovery codes keep working, so account security never drops and nobody is locked out. Once the license is valid again, everything is back.
The admin panel shows a license notice.
Section titled “The admin panel shows a license notice.”Open Add-ons → Manage add-ons → Login Security: 2FA & Passkeys: the License card at the top says what is wrong: no key, a key for another add-on, a revoked license, or a domain that the license does not cover. Fix it on the License tab and click Check now. See License.
Does the add-on work on my staging copy?
Section titled “Does the add-on work on my staging copy?”Yes. Subdomains of your licensed domain (for example staging.example.com) and local development hosts (localhost, private IP addresses, *.local, *.test) are covered by the same license. Passkeys are bound to the host name, so a passkey added on the live store does not work on staging: add a separate one there.
What happens if your license server is down?
Section titled “What happens if your license server is down?”Nothing changes for 14 days: the add-on keeps working and retries every hour. Only if no check succeeds for 14 days are the license-gated parts switched off until the next successful check; the second step of enrolled users keeps working throughout.
Does the license check slow down my storefront or checkout?
Section titled “Does the license check slow down my storefront or checkout?”No. The check runs only in the admin panel or from cron, at most once a day, never while customers browse, sign in or check out.
My license shows “Pending verification”
Section titled “My license shows “Pending verification””This status appears in older add-on versions when you use a CS-Cart Marketplace license number that our license server has not matched with the Marketplace yet. The add-on is fully working in this state: no feature is switched off and you do not need to do anything. Newer versions show it as Active (Marketplace license). We confirm Marketplace numbers on our side; click Check now on the add-on’s License tab (Add-ons → Manage add-ons → the add-on) a little later and it shows Active. If it has not changed after 24 hours, contact support with your Marketplace order number.
Still stuck?
Section titled “Still stuck?”Work through the troubleshooting guide, then contact support with your CS-Cart version, edition, PHP version and the add-on version (1.1.5).