I have an umbraco site that is using the MySQLMembership provider. Its all working great, members can register, retrieve passwords, edit their details etc etc.
I have been trying to add a Event Hander umbraco to fire when a member is added to a Role Group, by creating a class that inherits from ApplicationBase, then hooking up the event handlers in the constructor. This works great for all events except membership events.
So the question is: Should I be able to attach to umbraco membership events when using the MySQL membership provider?
No, you wont be able to attach the events. The events are fired from umbraco.businesslogic.member.Member class. If you're using a custom MembershipProvider class then it wont go through there.
I'd suggest that you create your own class(s) which inherit from the MySQLMembershipProvider and override the methods which you need to override, call the base method, then add your custom logic.
MySQL Membership Provider Events
Hi,
After some guidance here if possible.
I have an umbraco site that is using the MySQLMembership provider. Its all working great, members can register, retrieve passwords, edit their details etc etc.
I have been trying to add a Event Hander umbraco to fire when a member is added to a Role Group, by creating a class that inherits from ApplicationBase, then hooking up the event handlers in the constructor. This works great for all events except membership events.
So the question is: Should I be able to attach to umbraco membership events when using the MySQL membership provider?
Thanks
Jim
No, you wont be able to attach the events. The events are fired from umbraco.businesslogic.member.Member class. If you're using a custom MembershipProvider class then it wont go through there.
I'd suggest that you create your own class(s) which inherit from the MySQLMembershipProvider and override the methods which you need to override, call the base method, then add your custom logic.
Thanks for replying.
I thought that might be the case, just wanted to double check I'd not missed something simple in config somewhere.
Thanks for the advice, I'll have a bash at implementing my own custom provider as you suggest.
is working on a reply...