Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/action/PhabricatorAuthTryFactorAction.php
| <?php | <?php | ||||
| final class PhabricatorAuthTryFactorAction extends PhabricatorSystemAction { | final class PhabricatorAuthTryFactorAction extends PhabricatorSystemAction { | ||||
| const TYPECONST = 'auth.factor'; | const TYPECONST = 'auth.factor'; | ||||
| public function getActionConstant() { | |||||
| return self::TYPECONST; | |||||
| } | |||||
| public function getScoreThreshold() { | public function getScoreThreshold() { | ||||
| return 10 / phutil_units('1 hour in seconds'); | return 10 / phutil_units('1 hour in seconds'); | ||||
| } | } | ||||
| public function getLimitExplanation() { | public function getLimitExplanation() { | ||||
| return pht( | return pht( | ||||
| 'You have failed to verify multi-factor authentication too often in '. | 'You have failed to verify multi-factor authentication too often in '. | ||||
| 'a short period of time.'); | 'a short period of time.'); | ||||
| } | } | ||||
| } | } | ||||