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