Xbasic
afterPasswordChange
Description
Fires after the user's password has been changed.
Discussion
Two Xbasic events are available when a user changes their password in the UX Login component. The beforePasswordChange event fires before the password is changed and the afterPasswordChange event fires after the password has been changed.
The typical use case for these events is to store recently used password hashes in a database (using the afterPasswordChange event) so that you can prevent the user from reusing a previously used password (in the beforePasswordChange event).
Prototype
The afterPasswordChange event handler is an Xbasic function that uses the following prototype:
function proto_afterpasswordchange as c () proto_afterpasswordchange = <<%code% function __name__ as c (e as p) 'Called after the user has successfully changed their password (in the UX Login component). 'A typical use case for this event is to store the password hash in a table so that in the beforePasswordChange event end function %code%
See Also