K
Kirby
Guest
PHP:
As can be seen,
Could this be changed to smth. like
PHP:
Read more
Continue reading...
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...