Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jim 5 posts 25 karma points
    Feb 03, 2010 @ 12:13
    Jim
    0

    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

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Feb 03, 2010 @ 12:46
    Aaron Powell
    1

    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.

  • Jim 5 posts 25 karma points
    Feb 03, 2010 @ 13:22
    Jim
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft