fix haedwired users login
authorMohamed Larabi <mohamed.larabi@inria.fr>
Tue, 5 Mar 2013 13:26:28 +0000 (14:26 +0100)
committerMohamed Larabi <mohamed.larabi@inria.fr>
Tue, 5 Mar 2013 13:26:28 +0000 (14:26 +0100)
auth/backend.py

index 25114e7..0eb1f2d 100644 (file)
@@ -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