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 (parent:
d36533f
)
Simplified getting the service off the session for social login.
author
deyk
<deyk@crossway.org>
Wed, 11 Apr 2012 18:22:38 +0000
(11:22 -0700)
committer
deyk
<deyk@crossway.org>
Wed, 11 Apr 2012 18:22:38 +0000
(11:22 -0700)
cas_provider/views.py
patch
|
blob
|
history
diff --git
a/cas_provider/views.py
b/cas_provider/views.py
index
2e5e1f5
..
87e5e78
100644
(file)
--- a/
cas_provider/views.py
+++ b/
cas_provider/views.py
@@
-118,11
+118,7
@@
def socialauth_login(request, template_name='cas/login.html', success_redirect='
"""
user = request.user
user.backend = 'django.contrib.auth.backends.ModelBackend'
"""
user = request.user
user.backend = 'django.contrib.auth.backends.ModelBackend'
- if 'service' in request.session:
- service = request.session['service']
- del request.session['service']
- else:
- service = '/'
+ service = request.session.pop('service', '/')
errors = []
if user is not None:
if user.is_active:
errors = []
if user is not None:
if user.is_active: