oncall-engine/engine/apps/public_api/throttlers/user_throttle.py
Innokentii Konstantinov 61fdcfdc72
Add ratelimit for phone number verification (#1354)
# What this PR does

## Which issue(s) this PR fixes

## Checklist

- [x] Tests updated
- [x] `CHANGELOG.md` updated

---------

Co-authored-by: Joey Orlando <joey.orlando@grafana.com>
2023-02-21 16:47:52 +08:00

6 lines
139 B
Python

from rest_framework.throttling import UserRateThrottle
class UserThrottle(UserRateThrottle):
scope = "public_api"
rate = "300/m"