mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-11-22 00:56:34 +03:00
allows registration throttle control
This commit is contained in:
parent
3189a5c7a0
commit
2a0fa1ab4e
|
@ -28,6 +28,7 @@ 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 == \
|
||||
|
|
Loading…
Reference in New Issue
Block a user