Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
==================
* Remove Django 1.8 support
* Fix ldap3 compatibility issue: remove white space in DN string
* Use '' for default CAS_DEFAULT_NEXT setting

1.2.1 (2018-08-03)
==================
Expand Down
7 changes: 1 addition & 6 deletions djangowind/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,7 @@ def caslogin(request, redirect_field_name=REDIRECT_FIELD_NAME):
if not request.is_secure():
protocol = "https"

# if we didn't have one stashed in the session
# the best guess is that it was for django admin
# so, this is a bit magic, but I don't have any better
# ideas right now
default_next = getattr(settings, 'CAS_DEFAULT_NEXT',
"/admin/&this_is_the_login_form=1")
default_next = getattr(settings, 'CAS_DEFAULT_NEXT', '')
url = request.session.get(
'cas_service_url',
protocol + "://" + request.get_host() + "/accounts/caslogin/"
Expand Down