Nitron/django-cas-provider — Issue #3: Does not use LOGIN_REDIRECT_URL setting.
Author: AndreLouisCaron
Created: 2011-11-02 22:15:19+00:00
State: open

I was quite surprised to see that my `LOGIN_REDIRECT_URL` is consistently ignored and I'm always redirected to `/account/` after login. It seems that the `cas_provider.views.login` view uses an extra parameter with the URL to redirect to.

This should be changed to use the `LOGIN_REDIRECT_URL` setting for two reasons. First, the replacement login view should behave as much as possible like the one in `django.contrib.auth`. Second, I cannot use the `include(cas_provider.urls)` shortcut in my project's `urls.py` if I plan to use the `success_redirect` parameter.