Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/action/PhabricatorAuthChangePasswordAction.php
<?php | <?php | ||||
final class PhabricatorAuthChangePasswordAction | final class PhabricatorAuthChangePasswordAction | ||||
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 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 failed to enter the correct account password too often in '. | 'You have failed to enter the correct account password too often in '. | ||||
'a short period of time.'); | 'a short period of time.'); | ||||
} | } | ||||
} | } |