mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-13 10:22:42 +01:00
22 lines
466 B
PHP
22 lines
466 B
PHP
|
<?php
|
||
|
|
||
|
final class PhabricatorAuthTryFactorAction extends PhabricatorSystemAction {
|
||
|
|
||
|
const TYPECONST = 'auth.factor';
|
||
|
|
||
|
public function getActionConstant() {
|
||
|
return self::TYPECONST;
|
||
|
}
|
||
|
|
||
|
public function getScoreThreshold() {
|
||
|
return 10 / phutil_units('1 hour in seconds');
|
||
|
}
|
||
|
|
||
|
public function getLimitExplanation() {
|
||
|
return pht(
|
||
|
'You have failed to verify multi-factor authentication too often in '.
|
||
|
'a short period of time.');
|
||
|
}
|
||
|
|
||
|
}
|