Copied to clipboard

Flag this post as spam?

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


  • Anil Kumar 21 posts 161 karma points
    May 09, 2018 @ 21:54
    Anil Kumar
    0

    Want to set Member status to suspend in default for MemberListView

    When an user is registered under Member group, the default value is considered as approval for member. How can we restrict the member status to Suspend Status by default. I would like like to approve or delete the user once the user registers.. Please assist

  • Robert Foster 394 posts 1460 karma points admin c-trib
    May 10, 2018 @ 08:28
    Robert Foster
    0

    You would need to hook into the MemberService Created event and set the status to suspended as it's created - take a look at the documentation here:

    https://our.umbraco.org/documentation/Reference/Events

    Start by creating a class to inherit from the ApplicationEventHandler class, and then subscribe to the appropriate event on the MemberService.

Please Sign in or register to post replies

Write your reply to:

Draft