In XenForo_ControllerPublic_Register the _getRegistrationInputData() method unsets some $_POST data, making it impossible for the method to be run twice properly.
The code comments seem to acknowledge it's a bit hacky
In an add-on, I ended up doing something like this so that I could run the method without messing up when XenForo runs it the 2nd time:
Seems like a simple fix and it would be nice to see in core
The code comments seem to acknowledge it's a bit hacky
In an add-on, I ended up doing something like this so that I could run the method without messing up when XenForo runs it the 2nd time:
PHP:
protected $_inputData = array();
protected function _getRegistrationInputData()
{
if (!empty($this->_inputData)) {
$this->_inputData = parent::_getRegistrationInputData();
}
return $this->_inputData;
}
Seems like a simple fix and it would be nice to see in core