Closed abso-bmarquis closed 3 years ago
The forget password mutation is not yet available from graphql
On hold need the GraphQL mutation. @abso-bmarquis can you created please a ticket at https://github.com/magento/magento2 thank you in advance.
best regards,
Lars
This endpoint has been added to 2.4.0
, so we can start supporting this feature with our next release. I've tagged the next release as 8.0.0
for now, but it's possible it will not be a major. Work can start on this feature, but we will not merge into develop
until after 7.0.0
has been released (mid-July).
@magento I am working on this
Handling this in #2619
Working on v8.0.0
Describe the bug When submitting a forgot password request, there is nothing posted (no graphql query)
To reproduce Steps to reproduce the behavior:
Expected behavior Form is posted and an email is sent
Screenshots Screencast: https://drive.google.com/file/d/1hruJJdCxMp1fQqxEAG3z9BHHVugZYZWe/view
Implementation Details
There are two new GraphQL mutations that you'll need to call, both will have a new treatment that will will be provided by UX.
1.
requestPasswordResetEmail(email: String!): Boolean
This view is already built, but the action will need hooked up to this mutation. Upon clicking they will receive an email with a token for the next view. It says it returns a boolean, but I would hope it doesn't confirm that is a known address, it should give the same message regardless if it exists or not.
2.
resetPassword(email: String!, resetPasswordToken: String!, newPassword: String!): Boolean
This view will require a form with two inputs for the token and the new password; we can pull the email address from the previous view. After the mutation succeeds, I don't see why we wouldn't just automatically log them in, but we can also return them to the login form to manually log them in (wait for UX on this).
I will confirm what error states we need to handle, which will at least be invalid token or password doesn't adhere to password requirements.
Packages information
"@magento/babel-preset-peregrine": "~1.0.1", "@magento/eslint-config": "~1.5.0", "@magento/peregrine": "~5.0.1", "@magento/pwa-buildpack": "~5.0.0", "@magento/upward-js": "~4.0.0", "@magento/venia-ui": "~2.0.1",
Possible solutions Make the graphql call to trigger the email
Please complete the following device information:
npm -v
: 6.13.4node -v
: v10.19.0Please let us know what packages this bug is in regards to:
venia-concept
venia-ui
pwa-buildpack
peregrine
pwa-devdocs
upward-js
upward-spec
create-pwa