Skip to content

Commit

Permalink
Merge branch 'abdm-m1-vignesh' of github.com:coronasafe/care into abd…
Browse files Browse the repository at this point in the history
…m-m1-vignesh
  • Loading branch information
khavinshankar committed Mar 7, 2023
2 parents 3ba753a + 2649f9c commit dce2d53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/ratelimit.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def validatecaptcha(request):
return False


# refer https://django-ratelimit.readthedocs.io/en/stable/rates.html for rate
def ratelimit(
request, group="", keys=[None], rate=settings.DJANGO_RATE_LIMIT, increment=True
):
Expand Down
1 change: 1 addition & 0 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ def GETKEY(group, request):
return "ratelimit"


# https://django-ratelimit.readthedocs.io/en/stable/rates.html
DJANGO_RATE_LIMIT = env("RATE_LIMIT", default="5/10m")

GOOGLE_RECAPTCHA_SECRET_KEY = env("GOOGLE_RECAPTCHA_SECRET_KEY", default="")
Expand Down

0 comments on commit dce2d53

Please sign in to comment.