forked from ungleich-public/dynamicweb
Accept GET on logout again, the pages link to it with plain links and Django 5 made LogoutView POST-only
This commit is contained in:
parent
5bf3d13ae4
commit
7c0db56dc2
4 changed files with 15 additions and 4 deletions
|
|
@ -1,4 +1,5 @@
|
|||
from django.urls import re_path
|
||||
from utils.views import LogoutView
|
||||
from django.contrib.auth import views as auth_views
|
||||
|
||||
from .views import LandingView, LoginView, SignupView, PasswordResetView,\
|
||||
|
|
@ -11,7 +12,7 @@ urlpatterns = [
|
|||
re_path(r'^$', LandingView.as_view(), name='landing'),
|
||||
re_path(r'^login/?$', LoginView.as_view(), name='login'),
|
||||
re_path(r'^signup/?$', SignupView.as_view(), name='signup'),
|
||||
re_path(r'^logout/?$', auth_views.LogoutView.as_view(
|
||||
re_path(r'^logout/?$', LogoutView.as_view(
|
||||
next_page='/nosystemd/login?logged_out=true'), name='logout'),
|
||||
re_path(r'reset-password/?$', PasswordResetView.as_view(), name='reset_password'),
|
||||
re_path(r'reset-password-confirm/(?P<uidb64>[0-9A-Za-z]+)-(?P<token>.+)/$',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue