Keep query string then redirecting from / to /login

This commit is contained in:
Valentin Samir 2018-05-21 13:10:33 +02:00
parent 797b6c6e61
commit 5bd06d47c5
2 changed files with 5 additions and 1 deletions

View file

@ -14,6 +14,7 @@ Added
-----
* Support for python 3.6 and Django 1.11
* Support for Django 2.0
* Keep query string then redirecting from / to /login
Fixes
-----

View file

@ -19,7 +19,10 @@ from cas_server import views
app_name = "cas_server"
urlpatterns = [
url(r'^$', RedirectView.as_view(pattern_name="cas_server:login", permanent=False)),
url(
r'^$',
RedirectView.as_view(pattern_name="cas_server:login", permanent=False, query_string=True)
),
url(
'^login$',
sensitive_post_parameters('password')(