Version 12.2 Release Notes
B2B/Private Store
4 min
restrict user registration by domain & enable email otp login restricting registration by domain ensures that only authorized users from a company or organization can access the store, preventing unauthorized sign ups, while the email otp login provides a faster and more secure login experience for b2b customers, reducing password reset requests and simplifying access to enable domain restriction and email login for a store, first navigate to the admin panel → stores and select either add store or edit store in the email domain restriction field, enter one or more approved domains, separated by commas (for example @company com, @partner org ) this ensures that only users with emails from these domains can register next, to allow passwordless login, simply toggle the email otp login option finally, click save to apply the changes on the storefront, new customers will be able to register only if their email address matches one of the approved domains they will receive an otp to validate their email and, once verified, can proceed to enter their basic details such as first and last name existing customers can log in easily by entering their registered email address and the otp they receive if someone attempts to register or log in with an email address that does not match the approved domains, the system will display a warning message indicating the email is invalid email based two factor authentication (2fa) two factor authentication (2fa) adds an extra layer of security by requiring users to verify their login with an otp sent to their email this prevents unauthorized access even if login credentials are compromised, making b2b stores more secure to enable email otp as a two factor authentication method for a store, start by logging in to the admin panel from there, navigate to the stores section and select either add store or edit store , depending on whether you’re creating a new store or updating an existing one on the store settings screen, look for the two factor authentication method option you will now see a new email option alongside the existing authenticator method select email as the preferred option and then click save to apply the changes on the storefront, customers can log in by simply entering their registered email address once entered, the system will automatically send a one time password (otp) to that email customers then need to enter the received otp, which allows them to securely access their store account without relying on a traditional password note email otp login and email based 2fa cannot be enabled together for the same store