Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/action/PhabricatorAuthTryPasswordAction.php
<?php | <?php | ||||
final class PhabricatorAuthTryPasswordAction | final class PhabricatorAuthTryPasswordAction | ||||
extends PhabricatorSystemAction { | extends PhabricatorSystemAction { | ||||
const TYPECONST = 'auth.password'; | const TYPECONST = 'auth.password'; | ||||
public function getActionConstant() { | |||||
return self::TYPECONST; | |||||
} | |||||
public function getScoreThreshold() { | public function getScoreThreshold() { | ||||
return 100 / phutil_units('1 hour in seconds'); | return 100 / phutil_units('1 hour in seconds'); | ||||
} | } | ||||
public function getLimitExplanation() { | public function getLimitExplanation() { | ||||
return pht( | return pht( | ||||
'Your remote address has made too many login attempts in a short '. | 'Your remote address has made too many login attempts in a short '. | ||||
'period of time.'); | 'period of time.'); | ||||
} | } | ||||
} | } |