mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2025-07-22 05:29:46 +03:00
urls of allauth need
This commit is contained in:
parent
ed8961e3c4
commit
703954f590
|
@ -5,7 +5,17 @@ from rest_auth.views import (
|
|||
PasswordResetView, PasswordResetConfirmView
|
||||
)
|
||||
|
||||
from rest_framework import status
|
||||
from rest_framework.decorators import api_view
|
||||
from rest_framework.response import Response
|
||||
|
||||
@api_view()
|
||||
def null_view(request):
|
||||
return Response(status=status.HTTP_400_BAD_REQUEST)
|
||||
|
||||
urlpatterns = [
|
||||
url(r'^password-reset-confirm/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$', null_view ,name='password_reset_confirm'),
|
||||
url(r"^confirm-email/$", null_view, name="account_email_verification_sent"),
|
||||
# URLs that do not require a session or valid token
|
||||
url(r'^password/reset/$', PasswordResetView.as_view(),
|
||||
name='rest_password_reset'),
|
||||
|
|
Loading…
Reference in New Issue
Block a user