Let customers sign in with their customer ID
Enable Login with Customer ID possible under Stores > Configuration > MageB2B > Customer ID. Customers can then enter either their email address or customer ID with the same Magento customer password.

The extension changes the login input to accept text. A username containing @ follows Magento's normal email-login path. A username without @ is looked up as a customer ID within the current website; when a match is found, the extension passes the associated email to Magento's standard authentication process.
This works for the regular customer login and Magento's AJAX authentication form.
Supported ID formats
Both numeric and prefixed IDs work:
104200001042CUST-01042B2B-001042-EU
Customers should enter the stored value as shown in their account. The lookup can also reconcile a numeric value with the configured template in common cases, but published instructions should use the complete customer ID to avoid ambiguity.
Security behavior
Customer ID login does not bypass Magento authentication:
- The normal customer password is still required.
- Magento's account status, CAPTCHA and lockout behavior still apply.
- Lookup is limited to the current website.
- Email login remains enabled.
Sequential numbers may be easier to guess than email addresses. Treat a customer ID as a convenient username, not a secret.
Test the workflow
- Create a staging customer with a known ID.
- Sign out of every customer session.
- Sign in once with the email address and once with the complete customer ID.
- Repeat the test from any checkout authentication popup used by the storefront.
- If the store has several websites, confirm that the ID resolves only on the intended website.
If the login fails, see Common issues.