ignore_errors must be in the select ...
git-svn-id: svn+ssh://labs.libre-entreprise.org/svnroot/larpe@487 3ed937ae-f919-0410-9a43-8e6f19e4ba6e
This commit is contained in:
parent
99532c2f49
commit
cae1c5d786
|
@ -191,7 +191,7 @@ class Saml2(Saml2Directory):
|
|||
return 'Your browser should redirect you'
|
||||
|
||||
def lookup_user(self, session, login):
|
||||
found_users = list(User.select(lambda x: login.nameIdentifier.content in x.name_identifiers), ignore_errors = True)
|
||||
found_users = list(User.select(lambda x: login.nameIdentifier.content in x.name_identifiers, ignore_errors = True))
|
||||
if found_users:
|
||||
return found_users[0]
|
||||
return None
|
||||
|
|
Reference in New Issue