Closed logiad closed 9 years ago
Assigned @mathieumg because he is more familliar with this module
What was the rationale behind not leveraging https://github.com/my-koop/module.user/blob/rc/components/PasswordChangeForm.jsx?
Code-wise CR done, haven't been able to test it yet as I'm currently not on my development setup.
I was wondering however, isn't there a problem with the current password reset flow? If I know of another user's email address, I can trigger a reset of his password whenever I want and as many times as I want.
Didnt see any similarity between PasswordUpdateForm and this component,
My bad, I actually meant to link to https://github.com/my-koop/service.website/blob/rc/components/PasswordRecoveryPage.jsx .
Indeed that would have been good. I didnt look because this component was very simple, a text input and a submit button.
About the flow, this is the simplest password reset process. Further improvements could be made such as, as you pointed out, preventing any user from resetting other user's password, asking additional information before resetting or sending a reset link by email.
This is a valid concern but I dont think it warrants modifying the flow.
Changes done.
CR #2 done.
Ready to review
CR 3 done.
CR done. Should be good to merge after changing/discussing the bind call.
User enters his email and submit. A new password is generated and hashed. User table entry for this user is updated. Password is sent by email to the user.