2018-11-11 12:41:48 +00:00
|
|
|
"""passbook URL Configuration"""
|
2019-06-25 16:00:54 +00:00
|
|
|
from django.urls import path
|
2018-11-11 12:41:48 +00:00
|
|
|
|
2019-06-25 16:00:54 +00:00
|
|
|
from passbook.core.views import authentication, overview, user
|
2020-05-09 19:31:29 +00:00
|
|
|
from passbook.flows.models import FlowDesignation
|
|
|
|
from passbook.flows.views import ToDefaultFlow
|
2018-11-11 12:41:48 +00:00
|
|
|
|
2019-06-25 16:00:54 +00:00
|
|
|
urlpatterns = [
|
2018-12-10 15:58:35 +00:00
|
|
|
# Authentication views
|
2020-05-09 19:31:29 +00:00
|
|
|
path(
|
|
|
|
"auth/login/",
|
|
|
|
ToDefaultFlow.as_view(designation=FlowDesignation.AUTHENTICATION),
|
|
|
|
name="auth-login",
|
|
|
|
),
|
2019-12-31 11:51:16 +00:00
|
|
|
path("auth/logout/", authentication.LogoutView.as_view(), name="auth-logout"),
|
|
|
|
path(
|
2020-05-10 14:20:17 +00:00
|
|
|
"auth/sign_up/",
|
|
|
|
ToDefaultFlow.as_view(designation=FlowDesignation.ENROLLMENT),
|
|
|
|
name="auth-sign-up",
|
2019-12-31 11:51:16 +00:00
|
|
|
),
|
|
|
|
path(
|
2020-05-10 14:20:17 +00:00
|
|
|
"auth/password/reset/<uuid:nonce_uuid>/",
|
2019-12-31 11:51:16 +00:00
|
|
|
authentication.PasswordResetView.as_view(),
|
|
|
|
name="auth-password-reset",
|
|
|
|
),
|
2018-12-10 15:58:35 +00:00
|
|
|
# User views
|
2020-05-08 14:50:50 +00:00
|
|
|
path("-/user/", user.UserSettingsView.as_view(), name="user-settings"),
|
|
|
|
path("-/user/delete/", user.UserDeleteView.as_view(), name="user-delete"),
|
2019-12-31 11:51:16 +00:00
|
|
|
path(
|
2020-05-08 14:50:50 +00:00
|
|
|
"-/user/change_password/",
|
2019-12-31 11:51:16 +00:00
|
|
|
user.UserChangePasswordView.as_view(),
|
|
|
|
name="user-change-password",
|
|
|
|
),
|
2018-12-10 15:58:35 +00:00
|
|
|
# Overview
|
2019-12-31 11:51:16 +00:00
|
|
|
path("", overview.OverviewView.as_view(), name="overview"),
|
2018-11-16 08:10:35 +00:00
|
|
|
]
|