Correction #141 master
authorCyril Robert <Cyril Robert crobert@inverse.ca>
Thu, 18 Mar 2010 14:36:36 +0000 (10:36 -0400)
committerCyril Robert <Cyril Robert crobert@inverse.ca>
Thu, 18 Mar 2010 14:36:36 +0000 (10:36 -0400)
auf_roa_authentification_backend/backends.py
setup.py

index a7dca16..cd56d26 100644 (file)
@@ -21,7 +21,10 @@ class CascadeBackend(ModelBackend):
         # Cherche les comptes roa+locaux
         remoteUser = localUser = None
         try:
-            remoteUser = RemoteUser.objects.get (email=email, password=md5pass)
+            if settings.AUTH_PASSWORD_REQUIRED:
+                remoteUser = RemoteUser.objects.get (email=email, password=md5pass)
+            else:
+                remoteUser = RemoteUser.objects.get (email=email)
         except:
             pass
         try:
index aa94c22..91e9a8a 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@
 from setuptools import setup, find_packages
 import sys, os
 
-version = '1.0.5'
+version = '1.0.6'
 
 setup(name='auf_roa_authentification_backend',
       version=version,