bigcommerce / b2b-buyer-portal

B2B Buyer Portal - BigCommerce B2B Edition
MIT License
25 stars 19 forks source link

fix: forgot password redirect issue #41

Closed deov31 closed 3 months ago

deov31 commented 3 months ago

Jira: BUN-2129

What/Why?

Right now the password reset url we get from emails if failing due to a redirect when user needs to set up a new password. I added forgotPassword url to isB2bTokenPage array to avoid the validation of required login for this page.

Rollout/Rollback

Revert PR

Testing

Create a new company via the dashboard app and when you get the email to reset the password it redirects the user to the login page instead of letting them set up the password.

Before:

https://github.com/bigcommerce/b2b-buyer-portal/assets/4503787/4a0bcbaa-c88d-4bf3-88aa-3f14e9f88836

After:

https://github.com/bigcommerce/b2b-buyer-portal/assets/4503787/bde240d8-04f5-4cc4-86ed-9a7d918ccd9c