I am developing a website which is having two user groups. The users of first user group will have self activation email with account activation link while second user group will be activated by admin after registration. As there is Users Setting for "Verify email addresses?" but we can't do it for specific user group. Is there any solution for it? Please suggest if possible with plugin.
1 Answer
Off the top of my head, the pseudocode would be something like:
- Listen for the
EVENT_BEFORE_SAVE_ELEMENT
event. - Check if it's a new user registration.
- If so, check the user group status.
- Apply account activation email logic based on #3.