-
- Downloads
feat: Add forgot password callback support in login component
Summary of changes - Enhanced login component to include a callback for handling forgot password functionality. - Updated property documentation to reflect the new callback function. - Modified the event handler to process the entered email through the new callback before further validation. - Updated `login.mjs`: - Introduced `callbacks.forgotPassword` property in the class documentation to allow transformation of the entered email. - Initialized `forgotPassword` callback with a default value of `null`. - Integrated the callback within `initEventHandler`, enabling email transformation and validation when the callback is provided. These changes empower developers to customize the login component's behavior when users forget their passwords, providing a more flexible and user-friendly experience.
Please register or sign in to comment