fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
import documents from Hg
[redakcja.git]
/
apps
/
django_cas
/
backends.py
diff --git
a/apps/django_cas/backends.py
b/apps/django_cas/backends.py
old mode 100755
(executable)
new mode 100644
(file)
index
f14619d
..
d55c9db
--- a/
apps/django_cas/backends.py
+++ b/
apps/django_cas/backends.py
@@
-7,6
+7,7
@@
from django_cas.models import User
__all__ = ['CASBackend']
__all__ = ['CASBackend']
+
def _verify_cas1(ticket, service):
"""Verifies CAS 1.0 authentication ticket.
def _verify_cas1(ticket, service):
"""Verifies CAS 1.0 authentication ticket.
@@
-52,7
+53,7
@@
def _verify_cas2(ticket, service):
except:
import traceback
traceback.print_exc()
except:
import traceback
traceback.print_exc()
- print "****"
+ print "****"
, url
print response
print "****"
finally:
print response
print "****"
finally:
@@
-77,7
+78,7
@@
class CASBackend(object):
if not username:
return None
try:
if not username:
return None
try:
- user = User.objects.get(username__iexact
=
username)
+ user = User.objects.get(username__iexact
=
username)
except User.DoesNotExist:
# user will have an "unusable" password
user = User.objects.create_user(username, '')
except User.DoesNotExist:
# user will have an "unusable" password
user = User.objects.create_user(username, '')
@@
-88,6
+89,6
@@
class CASBackend(object):
"""Retrieve the user's entry in the User model if it exists"""
try:
"""Retrieve the user's entry in the User model if it exists"""
try:
- return User.objects.get(pk
=
user_id)
+ return User.objects.get(pk
=
user_id)
except User.DoesNotExist:
return None
except User.DoesNotExist:
return None