title = "Registration"; $this->description = "Create a new account"; } public function loadView() { parent::loadView(); $document = $this->getDocument(); $settings = $document->getUser()->getConfiguration()->getSettings(); if ($settings->isRecaptchaEnabled()) { $document->getHead()->loadGoogleRecaptcha($settings->getRecaptchaSiteKey()); } } public function getAccountContent() { $settings = $this->getDocument()->getUser()->getConfiguration()->getSettings(); if (!$settings->isRegistrationAllowed()) { return $this->createErrorText( "Registration is not enabled on this website. If you are an administrator, goto /admin/settings, to enable the user registration" ); } return "