update
This commit is contained in:
33
accounts/urls.py
Normal file
33
accounts/urls.py
Normal file
@@ -0,0 +1,33 @@
|
||||
"""
|
||||
URL configuration for accounts app.
|
||||
"""
|
||||
from django.urls import path
|
||||
from django.contrib.auth import views as auth_views
|
||||
from . import views
|
||||
|
||||
app_name = 'accounts'
|
||||
|
||||
urlpatterns = [
|
||||
# Authentication
|
||||
path('login/', views.LoginView.as_view(), name='login'),
|
||||
path('logout/', views.LogoutView.as_view(), name='logout'),
|
||||
path('register/', views.RegisterView.as_view(), name='register'),
|
||||
|
||||
# MFA
|
||||
path('mfa/verify/', views.MFAVerifyView.as_view(), name='mfa_verify'),
|
||||
path('mfa/setup/', views.MFASetupView.as_view(), name='mfa_setup'),
|
||||
path('mfa/enable/', views.MFAEnableView.as_view(), name='mfa_enable'),
|
||||
path('mfa/disable/', views.MFADisableView.as_view(), name='mfa_disable'),
|
||||
|
||||
# Profile
|
||||
path('profile/', views.ProfileView.as_view(), name='profile'),
|
||||
path('profile/edit/', views.ProfileEditView.as_view(), name='profile_edit'),
|
||||
|
||||
# Password management
|
||||
path('password/change/', views.PasswordChangeView.as_view(), name='password_change'),
|
||||
path('password/reset/', views.PasswordResetView.as_view(), name='password_reset'),
|
||||
path('password/reset/done/', views.PasswordResetDoneView.as_view(), name='password_reset_done'),
|
||||
path('password/reset/confirm/<uidb64>/<token>/', views.PasswordResetConfirmView.as_view(), name='password_reset_confirm'),
|
||||
path('password/reset/complete/', auth_views.PasswordResetCompleteView.as_view(), name='password_reset_complete'),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user