git://git.onelab.eu
/
myslice.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
9913041
)
Merge branch 'master' of ssh://git.onelab.eu/git/myslice-django
author
Thierry Parmentelat
<thierry.parmentelat@inria.fr>
Wed, 6 Mar 2013 10:46:23 +0000
(11:46 +0100)
committer
Thierry Parmentelat
<thierry.parmentelat@inria.fr>
Wed, 6 Mar 2013 10:46:23 +0000
(11:46 +0100)
auth/backend.py
patch
|
blob
|
history
diff --git
a/auth/backend.py
b/auth/backend.py
index
25114e7
..
0eb1f2d
100644
(file)
--- a/
auth/backend.py
+++ b/
auth/backend.py
@@
-18,7
+18,9
@@
class MyCustomBackend:
# Create an authentication method
# This is called by the standard Django login procedure
- def authenticate(self, username=None, password=None):
+ def authenticate(self, token=None):
+ username=token['username']
+ password=token['password']
users=MyCustomBackend.hard_wired_users
if username not in users: return None
if password != users[username]: return None