We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 624ad01 commit 24675e7Copy full SHA for 24675e7
rest_auth/registration/views.py
@@ -8,7 +8,7 @@
8
from rest_framework.permissions import (AllowAny,
9
IsAuthenticated)
10
from rest_framework.generics import CreateAPIView, ListAPIView, GenericAPIView
11
-from rest_framework.exceptions import NotFound
+from rest_framework.exceptions import NotFound, MethodNotAllowed
12
from rest_framework import status
13
14
from allauth.account.adapter import get_adapter
@@ -86,6 +86,9 @@ class VerifyEmailView(APIView, ConfirmEmailView):
86
permission_classes = (AllowAny,)
87
allowed_methods = ('POST', 'OPTIONS', 'HEAD')
88
89
+ def get(self, *args, **kwargs):
90
+ raise MethodNotAllowed('GET')
91
+
92
def get_serializer(self, *args, **kwargs):
93
return VerifyEmailSerializer(*args, **kwargs)
94
0 commit comments