Allow platform admins to change rate limit

One less thing we have to go into the database to do, and remember to
manually clear the cache for after.
This commit is contained in:
Chris Hill-Scott
2020-10-21 14:30:35 +01:00
parent 37187b5757
commit 43b4acf1f9
8 changed files with 89 additions and 3 deletions

View File

@@ -1183,6 +1183,15 @@ class MessageLimit(StripWhitespaceForm):
)
class RateLimit(StripWhitespaceForm):
rate_limit = GovukIntegerField(
'Number of messages the service can send in a rolling 60 second window',
validators=[
DataRequired(message='Cannot be empty')
]
)
class ConfirmPasswordForm(StripWhitespaceForm):
def __init__(self, validate_password_func, *args, **kwargs):
self.validate_password_func = validate_password_func