[RSS Feed/News] Passing more extraParams to user spam checker from registration service requires overwriting whole method

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
\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

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom