2020-10-17 21:31:55 +02:00
|
|
|
from django.urls import include, path
|
|
|
|
import django.contrib.auth.views as dj_auth_views
|
2020-12-20 01:10:02 +01:00
|
|
|
from .views import LoginView, LogoutView, PasswordChangeView, AccountSettingsView
|
2020-10-17 21:31:55 +02:00
|
|
|
import django_cas_ng.views
|
|
|
|
|
2020-12-24 14:19:35 +01:00
|
|
|
app_name = "accounts"
|
2020-10-17 21:31:55 +02:00
|
|
|
|
|
|
|
cas_patterns = [
|
|
|
|
path("login/", django_cas_ng.views.LoginView.as_view(), name="cas_ng_login"),
|
|
|
|
path("logout/", django_cas_ng.views.LogoutView.as_view(), name="cas_ng_logout"),
|
|
|
|
path(
|
|
|
|
"callback/",
|
|
|
|
django_cas_ng.views.CallbackView.as_view(),
|
|
|
|
name="cas_ng_proxy_callback",
|
|
|
|
),
|
|
|
|
]
|
|
|
|
|
|
|
|
accounts_patterns = [
|
|
|
|
path("cas/", include(cas_patterns)),
|
2020-11-29 22:35:42 +01:00
|
|
|
path("login/", LoginView.as_view(), name="login"),
|
|
|
|
path("logout/", LogoutView.as_view(), name="logout"),
|
2020-10-17 21:31:55 +02:00
|
|
|
path("password_login/", dj_auth_views.LoginView.as_view(), name="password_login"),
|
2020-12-20 01:10:02 +01:00
|
|
|
path("change_password/", PasswordChangeView.as_view(), name="change_password"),
|
2020-12-24 14:19:35 +01:00
|
|
|
path("settings/", AccountSettingsView.as_view(), name="account_settings"),
|
2020-10-17 21:31:55 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
urlpatterns = [
|
2020-11-22 13:34:01 +01:00
|
|
|
path("", include(accounts_patterns)),
|
2020-10-17 21:31:55 +02:00
|
|
|
]
|