Closed
Description
While implementing resetPassword functionality into PWA, an engineer ran into a problem that resulted in this generic error response: Cannot set the customer's password
. It took digging through the exception log to discover the provided password didn't meet the minimum password requirements, which was not in the error message.
<2020-08-11 19:59:26] report.ERROR: Cannot set the customer's password {"exception":"[object] (GraphQL\\Error\\Error(code: 0): Cannot set the customer's password at /app/vendor/webonyx/graphql-php/src/Error/Error.php:174, Magento\\Framework\\GraphQl\\Exception\\GraphQlInputException(code: 0): Cannot set the customer's password at /app/vendor/magento/module-customer-graph-ql/Model/Resolver/ResetPassword.php:121, Magento\\Framework\\Exception\\InputException(code: 0): Minimum of different classes of characters in password is 3. Classes of characters: Lower Case, Upper Case, Digits, Special Characters. at /app/vendor/magento/module-customer/Model/AccountManagement.php:764)"} [>
Repro Steps:
- Execute
requestPasswordResetEmail
mutation and extract token from email - Execute
resetPassword
mutation with a weak password innewPassword
field
Expected: Error is returned with language explaining password didn't meet specific requirements (message from exception log)
Actual: Cannot set the customer's password
Metadata
Metadata
Assignees
Labels
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Failed. Automatic verification of issue format is failedGate 4. Acknowledged. Issue is added to backlog and ready for developmentPartners acceleration programMay be fixed according to the position in the backlog.The issue has been reproduced on latest 2.4-develop branchAffects non-critical data or functionality and does not force users to employ a workaround.
Type
Projects
Status
Done