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:
17b01c9
)
Changed `<CR><LF>` line endings to `<LF>` in `views.login`. Fixes #2
author
Marek Stępniowski
<marek@stepniowski.com>
Sat, 15 Oct 2011 10:38:28 +0000
(12:38 +0200)
committer
Marek Stępniowski
<marek@stepniowski.com>
Sat, 15 Oct 2011 10:38:28 +0000
(12:38 +0200)
cas_provider/views.py
patch
|
blob
|
history
diff --git
a/cas_provider/views.py
b/cas_provider/views.py
index
d64aa50
..
42faf0a
100644
(file)
--- a/
cas_provider/views.py
+++ b/
cas_provider/views.py
@@
-58,10
+58,10
@@
def validate(request):
ticket = ServiceTicket.objects.get(ticket=ticket_string)
username = ticket.user.username
ticket.delete()
ticket = ServiceTicket.objects.get(ticket=ticket_string)
username = ticket.user.username
ticket.delete()
- return HttpResponse("yes\
r\n%s\r
\n" % username)
+ return HttpResponse("yes\
n%s
\n" % username)
except:
pass
except:
pass
- return HttpResponse("no\
r\n\r
\n")
+ return HttpResponse("no\
n
\n")
def logout(request, template_name='cas/logout.html'):
url = request.GET.get('url', None)
def logout(request, template_name='cas/logout.html'):
url = request.GET.get('url', None)