-
-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
30 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 |
---|---|---|
|
@@ -158,6 +158,18 @@ def msg(self, _): | |
) | ||
|
||
|
||
class TooManySignUps(LazyResponseXXX): | ||
code = 429 | ||
def msg(self, _): | ||
return _( | ||
"Too many accounts have been created recently. This either means that " | ||
"a lot of people are trying to join Liberapay today, or that an attacker " | ||
"is trying to overload our system. As a result we have to ask you to come " | ||
"back later (e.g. in a few hours), or send an email to [email protected]. " | ||
"We apologize for the inconvenience." | ||
) | ||
|
||
|
||
class BadPasswordSize(LazyResponse400): | ||
def msg(self, _): | ||
return _("The password must be at least {0} and at most {1} characters long.", | ||
|
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