37 lines
1.6 KiB
Python
37 lines
1.6 KiB
Python
"""
|
|
URL configuration for accounts app.
|
|
"""
|
|
|
|
from django.urls import path
|
|
from . import views
|
|
from allauth.account.views import SignupView, LoginView, LogoutView
|
|
|
|
app_name = 'accounts'
|
|
|
|
urlpatterns = [
|
|
|
|
# Main views
|
|
# path('login/', LoginView.as_view(),name='login'),
|
|
# path('logout/', LogoutView.as_view(), name='logout'),
|
|
# path('signup/', SignupView.as_view(), name='account_signup'),
|
|
|
|
path('users/', views.UserListView.as_view(), name='user_list'),
|
|
path('users/<int:pk>/', views.UserDetailView.as_view(), name='user_detail'),
|
|
path('profile/', views.UserProfileView.as_view(), name='user_profile'),
|
|
path('sessions/', views.SessionManagementView.as_view(), name='session_management'),
|
|
# path('reset-password/', views.ResetPasswordView.as_view(), name='reset_password'),
|
|
path('profile-picture/', views.upload_avatar, name='upload_avatar'),
|
|
|
|
|
|
# HTMX views
|
|
path('htmx/user-search/', views.user_search, name='user_search'),
|
|
path('htmx/user-stats/', views.user_stats, name='user_stats'),
|
|
path('htmx/session-list/', views.session_list, name='session_list'),
|
|
path('htmx/end-session/<uuid:session_id>/', views.end_session, name='end_session'),
|
|
path('htmx/profile-update/', views.user_profile_update, name='user_profile_update'),
|
|
path('htmx/two-factor-setup/', views.two_factor_setup, name='two_factor_setup'),
|
|
path('htmx/remove-two-factor/<uuid:device_id>/', views.remove_two_factor_device, name='remove_two_factor_device'),
|
|
path('htmx/user-activity/<int:user_id>/', views.user_activity_log, name='user_activity_log'),
|
|
]
|
|
|