[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/config/option/ -> PhabricatorRecaptchaConfigOptions.php (source)

   1  <?php
   2  
   3  final class PhabricatorRecaptchaConfigOptions
   4    extends PhabricatorApplicationConfigOptions {
   5  
   6    public function getName() {
   7      return pht('Integration with Recaptcha');
   8    }
   9  
  10    public function getDescription() {
  11      return pht('Configure Recaptcha captchas.');
  12    }
  13  
  14    public function getOptions() {
  15  
  16      return array(
  17        $this->newOption('recaptcha.enabled', 'bool', false)
  18          ->setBoolOptions(
  19            array(
  20              pht('Enable Recaptcha'),
  21              pht('Disable Recaptcha'),
  22            ))
  23          ->setSummary(pht('Enable captchas with Recaptcha.'))
  24          ->setDescription(
  25            pht(
  26              'Enable recaptcha to require users solve captchas after a few '.
  27              'failed login attempts. This hinders brute-force attacks against '.
  28              'user passwords. For more information, see http://recaptcha.net/')),
  29        $this->newOption('recaptcha.public-key', 'string', null)
  30          ->setDescription(
  31            pht('Recaptcha public key, obtained by signing up for Recaptcha.')),
  32        $this->newOption('recaptcha.private-key', 'string', null)
  33          ->setMasked(true)
  34          ->setDescription(
  35            pht('Recaptcha private key, obtained by signing up for Recaptcha.')),
  36      );
  37    }
  38  
  39  }


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1