SalesforceCommerceCloud / pwa-kit

React-based JavaScript frontend framework to create a progressive web app (PWA) storefront for Salesforce B2C Commerce.
https://developer.salesforce.com/docs/commerce/pwa-kit-managed-runtime/guide/pwa-kit-overview.html
BSD 3-Clause "New" or "Revised" License
284 stars 134 forks source link

[BUG] Improve errors when logging in with invalid credentials #1412

Open johnboxall opened 1 year ago

johnboxall commented 1 year ago

The error message displayed when a shopper enters an invalid password could be improved.

This happens in two places – 1st in the login modal:

Screenshot 2023-08-15 at 10 06 50 AM

  1. Open pwa-kit.mobify-storefront.com
  2. Activate the login model by clicking the floating head dude
  3. Enter an invalid password.

Observe an unhelpful "something went wrong!" message, expect a "your credentials are invalid" or something like that.

It also happens in the login form in the checkout:

Screenshot 2023-08-15 at 10 09 42 AM

  1. Open pwa-kit.mobify-storefront.com.
  2. Add something to cart.
  3. Proceed to checkout.
  4. Login as a registered shopper, providing an invalid password.

Observe a very unhelpful "401" message, expect a "your credentials are invalid" or something like that.

git2gus[bot] commented 11 months ago

This issue has been linked to a new work item: W-14508752