OpenSlides/server/openslides/users/urls.py

29 lines
845 B
Python
Raw Normal View History

from django.conf.urls import url
2011-07-31 10:46:29 +02:00
from . import views
2012-10-27 18:17:22 +02:00
urlpatterns = [
2015-09-16 00:55:27 +02:00
# Auth
2019-01-06 16:22:33 +01:00
url(r"^login/$", views.UserLoginView.as_view(), name="user_login"),
url(r"^logout/$", views.UserLogoutView.as_view(), name="user_logout"),
url(r"^whoami/$", views.WhoAmIView.as_view(), name="user_whoami"),
url(r"^setpassword/$", views.SetPasswordView.as_view(), name="user_setpassword"),
url(r"^setpresence/$", views.SetPresenceView.as_view(), name="user_setpresence"),
2019-01-06 16:22:33 +01:00
url(
r"^reset-password/$",
2018-10-09 22:00:55 +02:00
views.PasswordResetView.as_view(),
2019-01-06 16:22:33 +01:00
name="user_reset_password",
),
url(
r"^reset-password-confirm/$",
2018-10-09 22:00:55 +02:00
views.PasswordResetConfirmView.as_view(),
2019-01-06 16:22:33 +01:00
name="password_reset_confirm",
),
url(
r"^get-user/$",
views.GetUserView.as_view(),
name="get_user",
),
]