Blame view

src/core/pyros_django/user_manager/urls.py 2.33 KB
eefbbbd2   Etienne Pallier   Model splitting g...
1
# Django imports
860aa416   Alexis Koralewski   Adding new versio...
2
from django.urls import path, re_path
e419a2f6   Alexis Koralewski   Add new version f...
3
4
5
from django.contrib.auth import views as auth_views
from .forms import UserPasswordResetForm

eefbbbd2   Etienne Pallier   Model splitting g...
6
7
8
# Project imports
from . import views

e419a2f6   Alexis Koralewski   Add new version f...
9
10
urlpatterns = [
               path('users', views.users, name="users"),
860aa416   Alexis Koralewski   Adding new versio...
11
12
13
14
15
               re_path(r'^create$', views.create_user, name="create_user"),
               re_path(r'^forgotten_password$', views.forgotten_password, name="forgotten_password"),
               re_path(r'^creation_validate$', views.user_signup_validation, name="user_signup_validation"),
               re_path(r'^login$', views.login_validation, name="login_validation"),
               re_path(r'^logout$', views.user_logout, name="user_logout"),
e419a2f6   Alexis Koralewski   Add new version f...
16
17
18
19
20
21
22
               path('signin', views.user_signin, name="user_signin"),
               path('sp_profile', views.superoperator_return, name="sp_profile"),
               path('users/<int:pk>', views.user_detail_view, name='user_detail'),
               path('users_delete/<int:pk>', views.delete_user, name='user-delete'),
               path('users/<int:pk>/edit', views.user_detail_edit, name='user-edit'),
               path('user-status/<int:pk>/<int:current_user_id>', views.change_activate, name='change_activate'),
               path("set_active_role", views.set_active_role,name="set_active_role"),
dc5e48b6   Alexis Koralewski   Fixing who can ed...
23
               path("password-reset", auth_views.PasswordResetView.as_view( template_name="user_manager/password_reset.html",email_template_name="user_manager/password_reset_email.html"), name="password_reset"),
e419a2f6   Alexis Koralewski   Add new version f...
24
25
26
               path("password-reset/done/", auth_views.PasswordResetDoneView.as_view( template_name="user_manager/password_reset_done.html"), name="password_reset_done"),
               path("password-reset-confirm/<uidb64>/<token>", auth_views.PasswordResetConfirmView.as_view( template_name="user_manager/password_reset_confirm.html"), name="password_reset_confirm"),
               path("password-reset-complete/", auth_views.PasswordResetCompleteView.as_view( template_name="user_manager/password_reset_complete.html"), name="password_reset_complete"),
dc5e48b6   Alexis Koralewski   Fixing who can ed...
27
               path('change-password/',auth_views.PasswordChangeView.as_view(template_name='user_manager/change_password.html', success_url = '/'),name="password_change"),
e419a2f6   Alexis Koralewski   Add new version f...
28
29
               path('roles_description', views.roles_description, name="roles_description")
            ]