PelcroPasswordReset
Fired when password is reset
Overview
Fired when a password is successfully reset using a reset token.
Triggered By
| Method | Description |
|---|---|
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
- Events Overview - All available events
- PelcroPasswordForgot - Reset request event
- Password Module - Password methods
Updated 1 day ago
