-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurls.py
36 lines (35 loc) · 911 Bytes
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
from django.urls import path
from accounts.views import (
Register,
Login,
ResendActivationLink,
ResetPassword,
ActivateEmail,
ConfirmPassword,
Logout,
)
urlpatterns = [
path("register", Register.as_view(), name="register"),
path("login", Login.as_view(), name="login user"),
path(
"confirm-email/<str:user_id>/<str:token>",
ActivateEmail.as_view(),
name="activate email",
),
path(
"resend-activation-link/<str:email>",
ResendActivationLink.as_view(),
name="resend-activation-link",
),
path(
"reset-password/<str:email>",
ResetPassword.as_view(),
name="reset-password-token",
),
path(
"reset-password-confirm/<str:user_id>/<str:token>",
ConfirmPassword.as_view(),
name="confirm-password",
),
path("logout", Logout.as_view(), name="logout"),
]