-
-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
limit password logins to 3 per hour per account
- Loading branch information
Showing
3 changed files
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -149,6 +149,14 @@ def msg(self, _): | |
"or contact [email protected]." | ||
) | ||
|
||
class TooManyPasswordLogins(LazyResponseXXX): | ||
code = 429 | ||
def msg(self, _): | ||
return _( | ||
"There have been too many attempts to log in to this account recently, " | ||
"please try again in a few hours or log in via email." | ||
) | ||
|
||
|
||
class BadPasswordSize(LazyResponse400): | ||
def msg(self, _): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters