magento / pwa-studio

🛠Development tools to build, optimize and deploy Progressive Web Applications for Magento 2.
https://developer.adobe.com/commerce/pwa-studio/
Open Software License 3.0
1.06k stars 683 forks source link

[bug]: Require Emails Confirmation behavior issue #4265

Open coresh opened 3 months ago

coresh commented 3 months ago

Preconditions and environment

Steps to reproduce

  1. Config. core_config_data: customer/create_account/confirm is 1
  2. Guest
  3. Add any product to cart.
  4. Go to https://example.com/checkout
  5. Click to "Sign In" button
  6. Click to "Create An Account" button
  7. Submit form data

Expected result

The notification:

"Please check your email for confirmation key."

Actual result

The notification:

"An error has occurred. Please check the input and try again."

Additional information

Admin -> Stores -> Configuration -> Customer Configuration -> Create New Account Options screenshot_20240514-102647 Path: https://www.example.com/checkout screenshot_20240514-102950 Form submission result: screenshot_20240514-115246

Backend log output:

./var/log/exception.log <==
[2024-05-14T11:30:49.798471+00:00] report.ERROR: The account sign-in was incorrect or your account is disabled temporarily. Please wait and try again later.

GraphQL (2:3)
1: mutation SignInAfterCreate($email: String!, $password: String!) {
2:   generateCustomerToken(email: $email, password: $password) {
     ^
3:     token
 {"exception":"[object] (GraphQL\\Error\\Error(code: 0): The account sign-in was incorrect or your account is disabled temporarily. Please wait and try again later. at vendor/webonyx/graphql-php/src/Error/Error.php:155)
[previous exception] [object] (Magento\\Framework\\GraphQl\\Exception\\GraphQlAuthenticationException(code: 0): The account sign-in was incorrect or your account is disabled temporarily. Please wait and try again later. at vendor/magento/module-customer-graph-ql/Model/Resolver/GenerateCustomerToken.php:59)
[previous exception] [object] (Magento\\Framework\\Exception\\AuthenticationException(code: 0): The account sign-in was incorrect or your account is disabled temporarily. Please wait and try again later. at vendor/magento/module-integration/Model/CustomerTokenService.php:107)"} []
[2024-05-14T11:30:49.798471+00:00] report.ERROR: The account sign-in was incorrect or your account is disabled temporarily. Please wait and try again later.

Thank you

Release note

No response

Triage and priority

m2-assistant[bot] commented 3 months ago

Hi @coresh. Thank you for your report. To speed up processing of this issue, make sure that you provided sufficient information. Add a comment to assign the issue: @magento I am working on this


Join Magento Community Engineering Slack and ask your questions in #github channel.