I am trying to run a set of actions upon registration. Looking through some existing posts, it appears RegistrationComplete is the proper class to extend after the account is approved / validated, but I cannot seem to get the action to trigger upon successful registration.
class_extensions.xml
Notes\XF\Service\User\RegistrationComplete.php
class_extensions.xml
XML:
<?xml version="1.0" encoding="utf-8"?>
<class_extensions>
<extension from_class="XF\Service\User\RegistrationComplete" to_class="Notes\XF\Service\User\RegistrationComplete" execute_order="10" active="1"/>
</class_extensions>
Notes\XF\Service\User\RegistrationComplete.php
PHP:
<?php
namespace Notes\XF\Service\User;
class RegistrationComplete extends XFCP_RegistrationComplete
{
public function actionIndex()
{
throw new Exception("Weee! You found me!");
}
}