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