[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/auth/action/ -> PhabricatorAuthTryFactorAction.php (source)

   1  <?php
   2  
   3  final class PhabricatorAuthTryFactorAction extends PhabricatorSystemAction {
   4  
   5    const TYPECONST = 'auth.factor';
   6  
   7    public function getActionConstant() {
   8      return self::TYPECONST;
   9    }
  10  
  11    public function getScoreThreshold() {
  12      return 10 / phutil_units('1 hour in seconds');
  13    }
  14  
  15    public function getLimitExplanation() {
  16      return pht(
  17        'You have failed to verify multi-factor authentication too often in '.
  18        'a short period of time.');
  19    }
  20  
  21  }


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