Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/action/PhabricatorAuthTestSMSAction.php
| <?php | <?php | ||||
| final class PhabricatorAuthTestSMSAction extends PhabricatorSystemAction { | final class PhabricatorAuthTestSMSAction extends PhabricatorSystemAction { | ||||
| const TYPECONST = 'auth.sms.test'; | const TYPECONST = 'auth.sms.test'; | ||||
| 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 and other users on this install are collectively sending too '. | 'You and other users on this install are collectively sending too '. | ||||
| 'many test text messages too quickly. Wait a few minutes to continue '. | 'many test text messages too quickly. Wait a few minutes to continue '. | ||||
| 'texting tests.'); | 'texting tests.'); | ||||
| } | } | ||||
| } | } | ||||