Bug Cant pass additional extraData to user spam checker from user registration service

There is a bug in this version
K

Kirby

Guest
PHP:

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

    $userChecker = $this->app->spam()->userChecker();
    $userChecker->check($user, ['preRegActionKey' => $this->preRegActionKey]);

As can be seen, $extraData is kinda hardcoded which makes it somewaht difficult to pass additonal data to user checkers without overwriting the whole method.

Could this be changed to smth. like
PHP:

Code:
protected function getSpamCheckExtraData(): array
{
    return ['preRegActionKey' =>...

Read more

Continue reading...