CakeDC\Users\Controller\Traits\RegisterTrait::_validateRegisterPost PHP Method

_validateRegisterPost() protected method

Check the POST and validate it for registration, for now we check the reCaptcha
protected _validateRegisterPost ( ) : boolean
return boolean
    protected function _validateRegisterPost()
    {
        if (!Configure::read('Users.reCaptcha.registration')) {
            return true;
        }
        return $this->validateReCaptcha($this->request->data('g-recaptcha-response'), $this->request->clientIp());
    }