Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customer Portal: Refreshing the portal while in a password reset state results in unknown error #202

Open
adamjudd opened this issue Feb 17, 2025 · 1 comment
Assignees

Comments

@adamjudd
Copy link
Contributor

Details

With our recently added functionality for forcing a password reset if logging in with the temporary password, if you refresh the page, the portal will remain in the password reset state, but will fail to submit correctly as the temporary password is no longer present.

In that situation, let's instead just skip the password reset step and load the portal as normal. The customer can then complete a new password reset the next time they log in as required.

Updated events

As part of this change, let's also update our signin event to include a boolean flag for whether the customer needs to complete a forced password reset or not. Let's also add a new event for when the forced password reset has been completed.

@pheekus pheekus self-assigned this Feb 17, 2025
@pheekus
Copy link
Contributor

pheekus commented Feb 17, 2025

Released in Elements 1.40.0-beta.1. @adamjudd for the content protection script, the signin event will now include event.detail.forcePasswordReset boolean. There's also now a new event of type passwordreset – portal will fire that event in two situations:

  1. Customer completed the password reset: event.detail.result will equal completed.
  2. Customer skipped the password reset: event.detail.result will equal skipped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants