/** * Create a new user account wrapping the code with method callWithCaptchaDisabled to disable * captcha checking. * * @return User A new user object */ public function addNewAccount() { return UserLoginHelper::callWithCaptchaDisabled(function () { return $this->addNewAccountInternal(); }); }