fnp
/
django-cas-provider.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
9347227
)
simplify logic for login success redirect URL
author
Alex Kamedov
<alex@kamedov.ru>
Sun, 24 Apr 2011 11:14:59 +0000
(17:14 +0600)
committer
Alex Kamedov
<alex@kamedov.ru>
Sun, 24 Apr 2011 11:14:59 +0000
(17:14 +0600)
cas_provider/views.py
patch
|
blob
|
history
diff --git
a/cas_provider/views.py
b/cas_provider/views.py
index
41d02fd
..
452c071
100644
(file)
--- a/
cas_provider/views.py
+++ b/
cas_provider/views.py
@@
-12,7
+12,7
@@
__all__ = ['login', 'validate', 'logout', 'service_validate']
def login(request, template_name='cas/login.html', \
def login(request, template_name='cas/login.html', \
- success_redirect=
getattr(settings, 'LOGIN_REDIRECT_URL', '/accounts/')
):
+ success_redirect=
settings.LOGIN_REDIRECT_URL
):
service = request.GET.get('service', None)
if request.user.is_authenticated():
if service is not None:
service = request.GET.get('service', None)
if request.user.is_authenticated():
if service is not None: