Closed Xymmer closed 5 years ago
note there is an issue with being able to reset the password without knowing the old password, we're investigating. Separate last bullet of acceptance criteria (being able to submit successfully) if required.
UpdatePasswordComponent
is used both for requesting the reset password, as well as for setting it (just because it's the case right now). updatePassword
To further decouple, we should consider additional changes in the future:
This ticket is blocked by #1270 and https://jira.hybris.com/browse/RAY-239. What I have done is:
This is the email body we get (of course, the token is expired). You should be able to click the link then go to "reset password" page.
To code reviewer/tester:
The steps to make it work are:
uninstall the spacceleratorsampleaddon, and reinstall it
ant addonuninstall -Daddonnames="spacceleratorsamplesaddon" -DaddonStorefront.yacceleratorstorefront="yacceleratorstorefront"
ant addoninstall -Daddonnames="spacceleratorsamplesaddon" -DaddonStorefront.yacceleratorstorefront="yacceleratorstorefront"
replace the mail settings into local.properties (inside hybris/config)
mail.smtp.server=smtp.gmail.com
mail.smtp.port=587
mail.smtp.user=spa.gladiators@gmail.com
mail.smtp.password=hybris2019!
mail.use.tls=true
Or you can use Patrick's http://mockmail.plabadie.com/ to do it. Contact @plabadie for how to set it up.
rebuild the system, and start the hybris server
initialize the system
Go to forgot password page, then enter a valid user password.
You should able to get the email after a few seconds.
Click the link inside the email, you should see "reset password" page open. Enter new password.
We don't have the occ endpoint for "reset password". The the new password is not really reset. You should see the token and new password in browser's console.log.
You should be able to see the success message, and you are redirect to login page. But, you cannot login using your new password.
1) determine/update how the send reset password link is sent through email template that points to spartacus (I assume it's a combination of token + spartacus url inserted into email)
[ ] The "Reset Password" button is active before the password meets the criteria. However, a validation is done when clicked on it.
[X] Successfully submitting the new password redirects user to the login page and with the correct success message.
For point 5, For the submit button, we followed the form behaviour requirements described in the Wireframes: https://98qkkl.axshare.com/#g=1&p=main_action_on_form_pages The ticket description should have been updated.
master ticket: #349
Acceptance criteria: