Bug Passing more extraParams to user spam checker from registration service requires overwriting whole m

There is a bug in this version
K

Kirby

Guest
\XF\Service\User\Registration::checkForSpam
PHP:

Code:
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:

Code:
public function checkForSpam()
{
    $user = $this->user;

    $userChecker = $this->app->spam()->userChecker()...

Read more

Continue reading...