jumpserver/apps/users/urls/views_urls.py

47 lines
2.7 KiB
Python
Raw Normal View History

2016-11-16 10:12:14 +00:00
from __future__ import absolute_import
from django.conf.urls import url
2017-01-25 13:19:16 +00:00
2016-11-16 10:12:14 +00:00
from .. import views
app_name = 'users'
urlpatterns = [
2017-01-17 08:34:47 +00:00
# Login view
2016-09-06 07:03:37 +00:00
url(r'^login$', views.UserLoginView.as_view(), name='login'),
url(r'^logout$', views.UserLogoutView.as_view(), name='logout'),
2017-12-01 09:00:55 +00:00
url(r'^password/forgot$', views.UserForgotPasswordView.as_view(), name='forgot-password'),
url(r'^password/forgot/sendmail-success$', views.UserForgotPasswordSendmailSuccessView.as_view(), name='forgot-password-sendmail-success'),
url(r'^password/reset$', views.UserResetPasswordView.as_view(), name='reset-password'),
url(r'^password/reset/success$', views.UserResetPasswordSuccessView.as_view(), name='reset-password-success'),
2017-01-17 08:34:47 +00:00
2017-01-25 13:19:16 +00:00
# Profile
2017-12-01 09:00:55 +00:00
url(r'^profile/$', views.UserProfileView.as_view(), name='user-profile'),
url(r'^profile/update/$', views.UserProfileUpdateView.as_view(), name='user-profile-update'),
url(r'^profile/password/update/$', views.UserPasswordUpdateView.as_view(), name='user-password-update'),
url(r'^profile/pubkey/update/$', views.UserPublicKeyUpdateView.as_view(), name='user-pubkey-update'),
2017-01-25 13:19:16 +00:00
2016-11-09 11:29:15 +00:00
# User view
2016-09-04 08:05:58 +00:00
url(r'^user$', views.UserListView.as_view(), name='user-list'),
2017-12-01 09:00:55 +00:00
url(r'^user/export/', views.UserExportView.as_view(), name='user-export'),
url(r'^first-login/$', views.UserFirstLoginView.as_view(), name='user-first-login'),
url(r'^user/import/$', views.UserBulkImportView.as_view(), name='user-import'),
url(r'^user/create$', views.UserCreateView.as_view(), name='user-create'),
url(r'^user/(?P<pk>[0-9a-zA-Z\-]{36})/update$', views.UserUpdateView.as_view(), name='user-update'),
url(r'^user/update$', views.UserBulkUpdateView.as_view(), name='user-bulk-update'),
url(r'^user/(?P<pk>[0-9a-zA-Z\-]{36})$', views.UserDetailView.as_view(), name='user-detail'),
url(r'^user/(?P<pk>[0-9a-zA-Z\-]{36})/assets', views.UserGrantedAssetView.as_view(), name='user-granted-asset'),
url(r'^user/(?P<pk>[0-9a-zA-Z\-]{36})/login-history', views.UserDetailView.as_view(), name='user-login-history'),
2017-12-12 04:19:45 +00:00
2016-11-09 11:29:15 +00:00
# User group view
2017-12-01 09:00:55 +00:00
url(r'^user-group$', views.UserGroupListView.as_view(), name='user-group-list'),
url(r'^user-group/(?P<pk>[0-9a-zA-Z\-]{36})$', views.UserGroupDetailView.as_view(), name='user-group-detail'),
2017-12-01 09:00:55 +00:00
url(r'^user-group/create$', views.UserGroupCreateView.as_view(), name='user-group-create'),
url(r'^user-group/(?P<pk>[0-9a-zA-Z\-]{36})/update$', views.UserGroupUpdateView.as_view(), name='user-group-update'),
url(r'^user-group/(?P<pk>[0-9a-zA-Z\-]{36})/assets', views.UserGroupGrantedAssetView.as_view(), name='user-group-granted-asset'),
2017-12-05 04:24:31 +00:00
# Login log
url(r'^login-log/$', views.LoginLogListView.as_view(), name='login-log-list'),
]