Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/action/PhabricatorAuthEmailLoginAction.php
<?php | <?php | ||||
final class PhabricatorAuthEmailLoginAction extends PhabricatorSystemAction { | final class PhabricatorAuthEmailLoginAction extends PhabricatorSystemAction { | ||||
const TYPECONST = 'mail.login'; | const TYPECONST = 'mail.login'; | ||||
public function getActionConstant() { | |||||
return self::TYPECONST; | |||||
} | |||||
public function getScoreThreshold() { | public function getScoreThreshold() { | ||||
return 3 / phutil_units('1 hour in seconds'); | return 3 / phutil_units('1 hour in seconds'); | ||||
} | } | ||||
public function getLimitExplanation() { | public function getLimitExplanation() { | ||||
return pht( | return pht( | ||||
'Too many account recovery email links have been sent to this account '. | 'Too many account recovery email links have been sent to this account '. | ||||
'in a short period of time.'); | 'in a short period of time.'); | ||||
} | } | ||||
} | } |