This commit is contained in:
Spitap
2023-02-01 12:16:44 +01:00
parent cbfac68b97
commit bee1342f4d
7 changed files with 72 additions and 16 deletions
+6 -5
View File
@@ -187,12 +187,13 @@ MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
REST_FRAMEWORK = {
'DEFAULT_THROTTLE_RATES': {
'anon': '100/hour',
'login': '3/minute',
'ddos': '300/minute',
'user': '400/minute',
'ddos': '100/second',
'ddos_lesser': '300/minute',
'login': '10/minute',
'password_recovery_request': '6/hour',
'password_recovery_totp_check': '20/hour',
'password_recovery_apply': '20/hour'
'password_recovery_totp_check': '40/hour',
'password_recovery_apply': '40/hour'
},
'DEFAULT_AUTHENTICATION_CLASSES': (
'modoboa.core.drf_authentication.JWTAuthenticationWith2FA',