mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-11-26 02:53:46 +03:00
Rename Resend Verification Email View
- rename ResendVerificationEmail to ResendVerificationEmailView
This commit is contained in:
parent
c16ea36fc5
commit
aab8bf4740
|
@ -4,12 +4,12 @@ from django.conf.urls import url
|
||||||
from .views import (
|
from .views import (
|
||||||
RegisterView,
|
RegisterView,
|
||||||
VerifyEmailView,
|
VerifyEmailView,
|
||||||
ResendVerificationEmail
|
ResendVerificationEmailView
|
||||||
)
|
)
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
url(r'^$', RegisterView.as_view(), name='rest_register'),
|
url(r'^$', RegisterView.as_view(), name='rest_register'),
|
||||||
url(r'^resend-verification-email/$', ResendVerificationEmail.as_view(), name='rest_resend_verification_email'),
|
url(r'^resend-verification-email/$', ResendVerificationEmailView.as_view(), name='rest_resend_verification_email'),
|
||||||
url(r'^verify-email/$', VerifyEmailView.as_view(), name='rest_verify_email'),
|
url(r'^verify-email/$', VerifyEmailView.as_view(), name='rest_verify_email'),
|
||||||
# This url is used by django-allauth and empty TemplateView is
|
# This url is used by django-allauth and empty TemplateView is
|
||||||
# defined just to allow reverse() call inside app, for example when email
|
# defined just to allow reverse() call inside app, for example when email
|
||||||
|
|
|
@ -100,7 +100,7 @@ class VerifyEmailView(APIView, ConfirmEmailView):
|
||||||
return Response({'detail': _('ok')}, status=status.HTTP_200_OK)
|
return Response({'detail': _('ok')}, status=status.HTTP_200_OK)
|
||||||
|
|
||||||
|
|
||||||
class ResendVerificationEmail(GenericAPIView):
|
class ResendVerificationEmailView(GenericAPIView):
|
||||||
serializer_class = ResendVerificationEmailSerializer
|
serializer_class = ResendVerificationEmailSerializer
|
||||||
permission_classes = (AllowAny,)
|
permission_classes = (AllowAny,)
|
||||||
allowed_methods = ('POST', 'OPTIONS', 'HEAD')
|
allowed_methods = ('POST', 'OPTIONS', 'HEAD')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user