be99a76829
Having a title in the header is worse than a normal title inside the page. Restore the border to compensate.
27 lines
792 B
Python
27 lines
792 B
Python
from django.urls import include, path
|
|
import django.contrib.auth.views as dj_auth_views
|
|
from .views import login, logout
|
|
import django_cas_ng.views
|
|
|
|
app_name = "gestiojeux_auth"
|
|
|
|
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)),
|
|
path("login/", login, name="login"),
|
|
path("logout/", logout, name="logout"),
|
|
path("password_login/", dj_auth_views.LoginView.as_view(), name="password_login"),
|
|
]
|
|
|
|
urlpatterns = [
|
|
path("", include(accounts_patterns)),
|
|
]
|