2016-11-16 10:12:14 +00:00
|
|
|
from __future__ import absolute_import
|
|
|
|
|
2016-09-05 13:38:21 +00:00
|
|
|
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
|
2016-08-09 06:42:21 +00:00
|
|
|
|
|
|
|
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-01-17 08:34:47 +00:00
|
|
|
url(r'^password/forgot$', views.UserForgotPasswordView.as_view(),
|
|
|
|
name='forgot-password'),
|
2016-09-06 08:55:57 +00:00
|
|
|
url(r'^password/forgot/sendmail-success$',
|
2017-01-17 08:34:47 +00:00
|
|
|
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(),
|
2016-09-05 13:38:21 +00:00
|
|
|
name='reset-password-success'),
|
2017-01-17 08:34:47 +00:00
|
|
|
|
2017-01-25 13:19:16 +00:00
|
|
|
# Profile
|
|
|
|
url(r'^profile/$',
|
|
|
|
views.UserProfileView.as_view(),
|
|
|
|
name='user-profile'),
|
2017-03-29 16:51:36 +00:00
|
|
|
url(r'^profile/update/$',
|
|
|
|
views.UserProfileUpdateView.as_view(),
|
|
|
|
name='user-profile-update'),
|
2017-03-30 08:28:00 +00:00
|
|
|
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-01-17 08:34:47 +00:00
|
|
|
url(r'^user/(?P<pk>[0-9]+)$', views.UserDetailView.as_view(),
|
|
|
|
name='user-detail'),
|
|
|
|
url(r'^user/(?P<pk>[0-9]+)/asset-permission$',
|
|
|
|
views.UserAssetPermissionView.as_view(),
|
2016-09-16 17:04:52 +00:00
|
|
|
name='user-asset-permission'),
|
2017-01-17 08:34:47 +00:00
|
|
|
url(r'^user/(?P<pk>[0-9]+)/asset-permission/create$',
|
|
|
|
views.UserAssetPermissionCreateView.as_view(),
|
2016-11-10 14:06:23 +00:00
|
|
|
name='user-asset-permission-create'),
|
2017-01-17 08:34:47 +00:00
|
|
|
url(r'^user/(?P<pk>[0-9]+)/assets',
|
|
|
|
views.UserGrantedAssetView.as_view(),
|
|
|
|
name='user-granted-asset'),
|
|
|
|
url(r'^user/(?P<pk>[0-9]+)/login-history',
|
|
|
|
views.UserDetailView.as_view(),
|
|
|
|
name='user-login-history'),
|
|
|
|
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-9]+)/update$',
|
|
|
|
views.UserUpdateView.as_view(),
|
|
|
|
name='user-update'),
|
2016-11-09 11:29:15 +00:00
|
|
|
|
|
|
|
# User group view
|
2017-01-17 08:34:47 +00:00
|
|
|
url(r'^user-group$',
|
|
|
|
views.UserGroupListView.as_view(),
|
|
|
|
name='user-group-list'),
|
|
|
|
url(r'^user-group/(?P<pk>[0-9]+)$',
|
|
|
|
views.UserGroupDetailView.as_view(),
|
|
|
|
name='user-group-detail'),
|
|
|
|
url(r'^user-group/create$',
|
|
|
|
views.UserGroupCreateView.as_view(),
|
|
|
|
name='user-group-create'),
|
|
|
|
url(r'^user-group/(?P<pk>[0-9]+)/update$',
|
|
|
|
views.UserGroupUpdateView.as_view(),
|
|
|
|
name='user-group-update'),
|
|
|
|
url(r'^user-group/(?P<pk>[0-9]+)/asset-permission$',
|
|
|
|
views.UserGroupAssetPermissionView.as_view(),
|
2016-11-15 11:33:04 +00:00
|
|
|
name='user-group-asset-permission'),
|
2017-01-17 08:34:47 +00:00
|
|
|
url(r'^user-group/(?P<pk>[0-9]+)/asset-permission/create$',
|
|
|
|
views.UserGroupAssetPermissionCreateView.as_view(),
|
2016-11-15 11:33:04 +00:00
|
|
|
name='user-group-asset-permission-create'),
|
2017-01-17 08:34:47 +00:00
|
|
|
url(r'^user-group/(?P<pk>[0-9]+)/assets',
|
|
|
|
views.UserGroupGrantedAssetView.as_view(),
|
2016-11-15 11:33:04 +00:00
|
|
|
name='user-group-granted-asset'),
|
2016-08-09 06:42:21 +00:00
|
|
|
]
|