Fixed default throttle class

This commit is contained in:
Spitap
2023-01-27 17:41:32 +01:00
parent 126f3a7ea5
commit bde07163b0
9 changed files with 44 additions and 33 deletions
-5
View File
@@ -186,11 +186,6 @@ MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
# Rest framework settings
REST_FRAMEWORK = {
'DEFAULT_THROTTLE_CLASSES': [
'rest_framework.throttling.AnonRateThrottle',
'rest_framework.throttling.ScopedRateThrottle',
'modoboa.lib.throttle.UserDosThrottle'
],
'DEFAULT_THROTTLE_RATES': {
'anon': '100/hour',
'login': '3/minute',