PelcroPasswordReset

Fired when password is reset

Overview

Fired when a password is successfully reset using a reset token.


Triggered By

MethodDescription
Pelcro.password.reset()Completing password reset

Event Detail

The event.detail object contains the response from the password reset.


Example

document.addEventListener('PelcroPasswordReset', (event) => {
  console.log('Password reset successful');

  showMessage('Your password has been reset. You can now log in.');

  // Redirect to login
  setTimeout(() => {
    window.location.href = '/login';
  }, 2000);
});

Related