You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've integrated Mailgun for password reset on my parse server. Password reset emails are being sent properly with the reset link. However, I cannot find documentation on how to handle the password reset after the user clicks on the reset link. Where is the documentation regarding how to handle the link back to my webapp and actually allowing the user to choose a new password?
You can either define customPages or use default parse page to prompt users for a new password.
customPages: {
invalidLink: link that has your custom page,
verifyEmailSuccess: link that has your custom page,
choosePassword: link that has your custom page,
passwordResetSuccess: link that has your custom page
}
Follow up question for parse folks:
Is there a way to do "something" after a password was changed for a user?
Let's suppose user A goes and generates&send the reset password link to their email, and then clicks on it and change their password successfully, is there a way for our app (e.g. cloud code) to detect that and call a function to do some cleanup?
Activity
hatpick commentedon Apr 13, 2017
You can either define customPages or use default parse page to prompt users for a new password.
Follow up question for parse folks:
Is there a way to do "something" after a password was changed for a user?
Let's suppose user A goes and generates&send the reset password link to their email, and then clicks on it and change their password successfully, is there a way for our app (e.g. cloud code) to detect that and call a function to do some cleanup?
chadclark1 commentedon Apr 14, 2017
@hatpick I have defined my customPages, but the user isn't getting directed to the custom page. Instead they are directed to https://url.com/parse/apps/my-parse-app-id/request_password_reset?token=WVu39ZyNsPWOA7dbF4h6386bE&username=emailaddress%40yahoo.com
Is there something else I need to do besides define customPages?
omairvaiyani commentedon Jun 4, 2017
It appears that the
choosePasswordkey is not actually utilised by parse-server:https://github.com/parse-community/parse-server/search?utf8=%E2%9C%93&q=choosePassword&type=
It is actually using the key
requestResetPasswordURLwhich has not been implemented in thecustomPageshash. Relatively quick fix I assume?https://github.com/parse-community/parse-server/search?utf8=%E2%9C%93&q=requestResetPasswordURL&type=