Registration Event

When a registration happens in a particular panel, is an event triggered? If so, what is the event and what data is passed to the event?

If not, I will suggest that an event, say Registered, with the following data
[ 
    'panel' => $panel,
    'user' => $user,
    'data' => ...
]

may be triggered. In the data array, other custom fields (not required for the user model) may be included.

This will be very useful in customizing any post registration actions that need to be carried out. A listener may take suitable action for customisation.

Let me know what any of you think.
Was this page helpful?