Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/action/PhabricatorAuthTryEmailLoginAction.php
<?php | <?php | ||||
final class PhabricatorAuthTryEmailLoginAction | final class PhabricatorAuthTryEmailLoginAction | ||||
extends PhabricatorSystemAction { | extends PhabricatorSystemAction { | ||||
const TYPECONST = 'mail.try-login'; | const TYPECONST = 'mail.try-login'; | ||||
public function getActionConstant() { | |||||
return self::TYPECONST; | |||||
} | |||||
public function getScoreThreshold() { | public function getScoreThreshold() { | ||||
return 20 / phutil_units('1 hour in seconds'); | return 20 / phutil_units('1 hour in seconds'); | ||||
} | } | ||||
public function getLimitExplanation() { | public function getLimitExplanation() { | ||||
return pht( | return pht( | ||||
'You have made too many account recovery requests in a short period '. | 'You have made too many account recovery requests in a short period '. | ||||
'of time.'); | 'of time.'); | ||||
} | } | ||||
} | } |