if you look into the account component, you can check the onRegister method.
all the post inputs are handled line 158
$data = post();
after a validation, all the fields are passed to the Auth::register method.
so basically you have to hook your own onRegister method before the Account component.
in your singup form in a page, you need to have this : form data-request="myRegisterMethod" instead f the standard form="onRegister" which is calling the account component method.
then still in the php section of your page, you will have your own code
public function myRegisterMethod()
{
// Do my custom things first thing first
try {
$data = post();
// at some point you need to call the original method
$this['account']->onRegister();
// ....
}
catch (Exception $ex) {
// do your own stuf when an error occurs
// the account compoennt is throwing nice exception, we have to catch them and treat them here
}
}
hope that helps