Skip to content

Commit 2a0fa1a

Browse files
allows registration throttle control
1 parent 3189a5c commit 2a0fa1a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rest_auth/registration/views.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class RegisterView(CreateAPIView):
2828
serializer_class = RegisterSerializer
2929
permission_classes = (AllowAny, )
3030
token_model = TokenModel
31+
throttle_scope = 'register_view'
3132

3233
def get_response_data(self, user):
3334
if allauth_settings.EMAIL_VERIFICATION == \

0 commit comments

Comments
 (0)