Copied to clipboard

Flag this post as spam?

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


  • devRics 4 posts 71 karma points
    Feb 11, 2015 @ 22:15
    devRics
    0

    Overriding the create method on the Umbraco member interface

    I need to cutomize the create (and edit) member section do some extra things on saving the member.

    Here are a few:

    - Auto generate a password for the user (not error out when saved without password/username)

    - Email credentials to user.

    - Fill in some fields programatically after user has created or updated the member.

    What's the best/proper way to override that method? Is there a way I can change the markup on the page?

    I am fairly confortable with .NET Membership and from what I have read Umbraco leverages that technology. I just need to know how to tap in to the umbraco engine and change a few things on the create/update methods for the members page.

    Any  help would be greatly appreciated.

    Thanks in advance.

     

     

  • Sören Deger 733 posts 2844 karma points c-trib
    Feb 12, 2015 @ 04:45
    Sören Deger
    0

    Hi devRics,

    welcome to our!

    You can use this events:

    MemberService.Created += MemberService_Created;
    MemberService.Saving += MemberService_Saving;
    MemberService.Saved += MemberService_Saved;


    Here is described how you can register the events:
    https://our.umbraco.org/Documentation/Reference/Events-v6/Application-Startup


    Best regards,

    Sören 

Please Sign in or register to post replies

Write your reply to:

Draft