1

Is there an event or hook we can leverage after a user verifies their email address? It looks like this is handled in UsersController::actionVerifyEmail() which calls $this->_onAfterActivateUser which calls $this->_redirectUserAfterAccountActivation. The specific users being created will not have CP access, so they will be redirected to craft()->config->getLocalized('activateAccountSuccessPath') in that method.

I would like to be able to set a flash message to confirm the email verification and informing them they need to log in to access all of the site, but I don't see any events or hooks to tie into. Any suggestions?

1

There currently aren't any verification events, but if the user is in a pending state (i.e. they haven't been activated yet), verification will trigger activation, which triggers the onBeforeActivateUser and onActivateUser events.

  • onActivateUser should be just what I need, thanks! – John O Oct 29 '15 at 22:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.