ordercloud-api / ngx-shopper

Open-source B2B e-commerce. Built with the OrderCloud.io API and maintained by the OrderCloud team
MIT License
9 stars 22 forks source link

Forgot Password #42

Closed crhistianramirez closed 6 years ago

crhistianramirez commented 6 years ago

As a buyer user I need a way of resetting my password in case I forget it

Setup: A message sender of type ForgotPassword has to be created and assigned to the buyer organization in the dashboard of the devcenter

Acceptance Criteria:

crhistianramirez commented 6 years ago

There is currently broken as it isn't linking to the reset page. The default message sender just sends an email with username and verification code. Couple of options here:

  1. update the default template so that it displays a link to a template (SendVerificationCode method takes in a URL that we can use to build up a link). If we customize it like this we're making some assumptions about the application of our users which is maybe not the best idea.
  2. Make it work with the default template which just exposes username and verification code as text. The user would then manually type it into the app along with their new password. This would allow the forgot password flow to work out of the box but its not the best in terms of ux. Its very common nowadays to just follow a link to reset your password. So we'd essentially be building something we know 99.99% people will want to change.
  3. Comment in the code that the email template for this app must be customized in order to work