Merge pull request #273 from Tivix/revert-209-patch-1

Revert "allows registration throttle control"
This commit is contained in:
Maxim Kukhtenkov 2016-10-17 10:11:18 -07:00 committed by GitHub
commit 0472b44241
2 changed files with 0 additions and 18 deletions

View File

@ -49,20 +49,3 @@ Configuration
- **OLD_PASSWORD_FIELD_ENABLED** - set it to True if you want to have old password verification on password change enpoint (default: False)
- **LOGOUT_ON_PASSWORD_CHANGE** - set to False if you want to keep the current user logged in after a password change
Throttling
=============
You may specify custom throttling for ``rest_auth.register.views.RegisterView`` by specifying DRF settings:
.. code-block:: python
REST_FRAMEWORK = {
'DEFAULT_THROTTLE_RATES': {
'anon': '6/m',
'register_view':'1/h',
},
}

View File

@ -28,7 +28,6 @@ class RegisterView(CreateAPIView):
serializer_class = RegisterSerializer
permission_classes = (AllowAny, )
token_model = TokenModel
throttle_scope = 'register_view'
def get_response_data(self, user):
if allauth_settings.EMAIL_VERIFICATION == \