Sort of odd...
I’ve had a custom plugin running on the
OnWebLogin event. It was working great w/ v1.2.0, but as of 1.3.0 it throws an error...
It APPEARS that the custom SQL that is run on that event errors as a result of
$modx->getLoginUserID() not returning a value.
Now, this to me would make sense if I was using
OnBeforeWebLogin, but I am not.
OK...so OnWebLogin events seem to behave in different order from the default WebLogin snippet and WLPE 1.2.0 ...is there something I am missing or need to do to ensure this event gets ran at the right time? It’s like the event is firing prematurely or something??
(Going through docs now...)
Update:
OK, so reviewing the API docs, do I need to set
&OnWebLogin=`myPluginName`
to correctly tie the events