bos21001 / familiasm-api

MIT License
0 stars 0 forks source link

[FEAT] Create a Reset Password view #3

Closed bos21001 closed 1 year ago

bos21001 commented 1 year ago

Process Flow

  1. Add your web app reset password page url e.g. http://myapp.com/reset-password to the allowed-reset-password-urls array of the appSection-authenticationconfig.
  2. Call the /password/forgot endpoint with a reset url of your choice. It should be one of the urls in the allowed-reset-password-urls array.
  3. This endpoint will email user a link like this:
  4. http://myapp.com/reset-password?email=mohammad.alavi1990@gmail.com&token=51f8d80182f3785648c9b9dc7162719d158fc418b3cca86c14963638ec83d663
  5. And when user click on that link it will go to your front end app reset password page. And then from there you should get the user's new password and call the /password-reset endpoint with all the required fields to reset the password.