Skip to content

Commit

Permalink
highten the ratelimit for login on same ip
Browse files Browse the repository at this point in the history
  • Loading branch information
T8902 committed Dec 10, 2024
1 parent 1314ab7 commit 2923d8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/thaliawebsite/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def post(self, request, *args, **kwargs):


class RateLimitedLoginView(LoginView):
@method_decorator(ratelimit(key="ip", rate="30/h"))
@method_decorator(ratelimit(key="ip", rate="100/h"))
@method_decorator(ratelimit(key="post:username", rate="30/h"))
def post(self, request, *args, **kwargs):
return super().post(request, *args, **kwargs)
Expand Down

0 comments on commit 2923d8c

Please sign in to comment.