projets
/
auf_roa_authentification_backend.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Correction #141
[auf_roa_authentification_backend.git]
/
auf_roa_authentification_backend
/
backends.py
diff --git
a/auf_roa_authentification_backend/backends.py
b/auf_roa_authentification_backend/backends.py
index
a7dca16
..
cd56d26
100644
(file)
--- a/
auf_roa_authentification_backend/backends.py
+++ b/
auf_roa_authentification_backend/backends.py
@@
-21,7
+21,10
@@
class CascadeBackend(ModelBackend):
# Cherche les comptes roa+locaux
remoteUser = localUser = None
try:
# 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:
except:
pass
try: