XF 2.3 Webhook for when someone becomes a valid user

JamesBrown

Well-known member
I need a webhook to fire at Zapier so it can take action every time someone joins and becomes "valid'. (email checked etc)

Current webhook options: Users webhooks offer: User Insert / User Update / User Delete / User Report / User Warn.

I can't see that any of these can work or be adapted. User Insert will likely fire before email validation. User Update is too broad and will generate lots of webhook deliveries for routine profile changes.

I haven't a scooby about developing. But would have thought a webhook when someone becomes a valid member would be of use to lots of people, so I've no idea why that option isn't built in. How can I achieve it? Anyone any ideas?

Cheers
 
So I've no idea why that option isn't built in.
With a few exceptions webhooks are basically fired for Insert, Update and Delete operations on entities and so far probably nbody though a specific event for "user became valid" would be necessary.

How can I achieve it? Anyone any ideas?
There are multiple ways to achieve this, but basically none without additional code on the XenForo side.

The easiest approach probably would be to extend XF\Webhook\Event\UserHandler and XF\Entity\User and fire a new event when User.user_state changes to valid (or whatever condition you want to have).
 
Back
Top Bottom