Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/auth/action/PhabricatorAuthTryFactorAction.php
12256 views
1
<?php
2
3
final class PhabricatorAuthTryFactorAction extends PhabricatorSystemAction {
4
5
const TYPECONST = 'auth.factor';
6
7
public function getScoreThreshold() {
8
return 10 / phutil_units('1 hour in seconds');
9
}
10
11
public function getLimitExplanation() {
12
return pht(
13
'You have failed to verify multi-factor authentication too often in '.
14
'a short period of time.');
15
}
16
17
}
18
19