- Affected version
- 2.2.12
\XF\Service\User\Registration::checkForSpam
Could this be changed so the second parameter for
Eg. smth. like
This would allow to easily pass more data through to the checker.
PHP:
public function checkForSpam()
{
$user = $this->user;
$userChecker = $this->app->spam()->userChecker();
$userChecker->check($user, ['preRegActionKey' => $this->preRegActionKey]);
Could this be changed so the second parameter for
check
is taken from a method istead of being hardcoded?Eg. smth. like
PHP:
public function checkForSpam()
{
$user = $this->user;
$userChecker = $this->app->spam()->userChecker();
$userChecker->check($user, $this->getSpamCheckExtraParams());
This would allow to easily pass more data through to the checker.