Path: blob/master/src/applications/config/option/PhabricatorRecaptchaConfigOptions.php
12256 views
<?php12final class PhabricatorRecaptchaConfigOptions3extends PhabricatorApplicationConfigOptions {45public function getName() {6return pht('Integration with Recaptcha');7}89public function getDescription() {10return pht('Configure Recaptcha captchas.');11}1213public function getIcon() {14return 'fa-recycle';15}1617public function getGroup() {18return 'core';19}2021public function getOptions() {2223return array(24$this->newOption('recaptcha.enabled', 'bool', false)25->setLocked(true)26->setBoolOptions(27array(28pht('Enable Recaptcha'),29pht('Disable Recaptcha'),30))31->setSummary(pht('Enable captchas with Recaptcha.'))32->setDescription(33pht(34'Enable recaptcha to require users solve captchas after a few '.35'failed login attempts. This hinders brute-force attacks against '.36'user passwords. For more information, see http://recaptcha.net/')),37$this->newOption('recaptcha.public-key', 'string', null)38->setLocked(true)39->setDescription(40pht('Recaptcha public key, obtained by signing up for Recaptcha.')),41$this->newOption('recaptcha.private-key', 'string', null)42->setHidden(true)43->setDescription(44pht('Recaptcha private key, obtained by signing up for Recaptcha.')),45);46}4748}495051