Skip to content

Commit 42adb08

Browse files
committed
Added specific path for email link verification post and changed path regex.
1 parent b14c942 commit 42adb08

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

project/userauth/urls.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@
1515
urlpatterns = (
1616
path('', include('dj_rest_auth.urls')),
1717
path('', include(router.urls)),
18-
path('registration/', include('dj_rest_auth.registration.urls')),
19-
path('registration/verify-email/', views.CustomVerifyEmailView.as_view(), name='account_email_verification_sent'),
18+
path('registration/', include('dj_rest_auth.registration.urls'), name='registration'),
19+
path('registration/verify-email/$', views.CustomVerifyEmailView.as_view(), name='account_email_verification_sent'),
20+
path('registration/verify-email/(?P<key>[-:\w]+)/$', views.CustomVerifyEmailView.as_view(), name='account_confirm_email'),
2021
path('password/reset/', PasswordResetView.as_view(), name='password_reset'),
2122
path('password/reset/confirm/<uidb64>/<token>/', PasswordResetConfirmView.as_view(), name='password_reset_confirm'),
2223
path('token/', TokenObtainPairView.as_view(), name='token_obtain_pair'),

0 commit comments

Comments
 (0)