Skip to content

Commit ff641cf

Browse files
Throttling documentation added
1 parent 2a0fa1a commit ff641cf

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/configuration.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,20 @@ Configuration
4949
- **OLD_PASSWORD_FIELD_ENABLED** - set it to True if you want to have old password verification on password change enpoint (default: False)
5050

5151
- **LOGOUT_ON_PASSWORD_CHANGE** - set to False if you want to keep the current user logged in after a password change
52+
53+
54+
Throttling
55+
=============
56+
57+
You may specify custom throttling for ``rest_auth.register.views.RegisterView`` by specifying DRF settings:
58+
59+
.. code-block:: python
60+
61+
REST_FRAMEWORK = {
62+
'DEFAULT_THROTTLE_RATES': {
63+
'anon': '6/m',
64+
'register_view':'1/h',
65+
},
66+
}
67+
68+

0 commit comments

Comments
 (0)