Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/auth/action/PhabricatorAuthTryEmailLoginAction.php
13441 views
1
<?php
2
3
final class PhabricatorAuthTryEmailLoginAction
4
extends PhabricatorSystemAction {
5
6
const TYPECONST = 'mail.try-login';
7
8
public function getScoreThreshold() {
9
return 20 / phutil_units('1 hour in seconds');
10
}
11
12
public function getLimitExplanation() {
13
return pht(
14
'You have made too many account recovery requests in a short period '.
15
'of time.');
16
}
17
18
}
19
20