2016-11-16 10:12:14 +00:00
|
|
|
from __future__ import absolute_import
|
|
|
|
|
2018-07-27 10:56:40 +00:00
|
|
|
from django.urls import path
|
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
|
2018-07-27 10:56:40 +00:00
|
|
|
path('login/', views.UserLoginView.as_view(), name='login'),
|
|
|
|
path('password/forgot/', views.UserForgotPasswordView.as_view(), name='forgot-password'),
|
|
|
|
path('password/forgot/sendmail-success/', views.UserForgotPasswordSendmailSuccessView.as_view(), name='forgot-password-sendmail-success'),
|
|
|
|
path('password/reset/', views.UserResetPasswordView.as_view(), name='reset-password'),
|
|
|
|
path('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
|
2018-07-27 10:56:40 +00:00
|
|
|
path('profile/', views.UserProfileView.as_view(), name='user-profile'),
|
|
|
|
path('profile/update/', views.UserProfileUpdateView.as_view(), name='user-profile-update'),
|
|
|
|
path('profile/password/update/', views.UserPasswordUpdateView.as_view(), name='user-password-update'),
|
|
|
|
path('profile/pubkey/update/', views.UserPublicKeyUpdateView.as_view(), name='user-pubkey-update'),
|
|
|
|
path('profile/pubkey/generate/', views.UserPublicKeyGenerateView.as_view(), name='user-pubkey-generate'),
|
|
|
|
path('profile/otp/enable/authentication/', views.UserOtpEnableAuthenticationView.as_view(), name='user-otp-enable-authentication'),
|
|
|
|
path('profile/otp/enable/install-app/', views.UserOtpEnableInstallAppView.as_view(), name='user-otp-enable-install-app'),
|
|
|
|
path('profile/otp/enable/bind/', views.UserOtpEnableBindView.as_view(), name='user-otp-enable-bind'),
|
|
|
|
path('profile/otp/disable/authentication/', views.UserOtpDisableAuthenticationView.as_view(), name='user-otp-disable-authentication'),
|
2018-09-03 03:24:25 +00:00
|
|
|
path('profile/otp/update/', views.UserOtpUpdateView.as_view(), name='user-otp-update'),
|
2018-07-27 10:56:40 +00:00
|
|
|
path('profile/otp/settings-success/', views.UserOtpSettingsSuccessView.as_view(), name='user-otp-settings-success'),
|
2017-01-25 13:19:16 +00:00
|
|
|
|
2016-11-09 11:29:15 +00:00
|
|
|
# User view
|
2018-07-27 10:56:40 +00:00
|
|
|
path('user/', views.UserListView.as_view(), name='user-list'),
|
|
|
|
path('first-login/', views.UserFirstLoginView.as_view(), name='user-first-login'),
|
|
|
|
path('user/create/', views.UserCreateView.as_view(), name='user-create'),
|
|
|
|
path('user/<uuid:pk>/update/', views.UserUpdateView.as_view(), name='user-update'),
|
|
|
|
path('user/update/', views.UserBulkUpdateView.as_view(), name='user-bulk-update'),
|
|
|
|
path('user/<uuid:pk>/', views.UserDetailView.as_view(), name='user-detail'),
|
|
|
|
path('user/<uuid:pk>/assets/', views.UserGrantedAssetView.as_view(), name='user-granted-asset'),
|
|
|
|
path('user/<uuid:pk>/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
|
2018-07-27 10:56:40 +00:00
|
|
|
path('user-group/', views.UserGroupListView.as_view(), name='user-group-list'),
|
|
|
|
path('user-group/<uuid:pk>/', views.UserGroupDetailView.as_view(), name='user-group-detail'),
|
|
|
|
path('user-group/create/', views.UserGroupCreateView.as_view(), name='user-group-create'),
|
|
|
|
path('user-group/<uuid:pk>/update/', views.UserGroupUpdateView.as_view(), name='user-group-update'),
|
|
|
|
path('user-group/<uuid:pk>/assets/', views.UserGroupGrantedAssetView.as_view(), name='user-group-granted-asset'),
|
2017-12-05 04:24:31 +00:00
|
|
|
|
2016-08-09 06:42:21 +00:00
|
|
|
]
|