1
0
Fork 0
mirror of https://framagit.org/framasoft/mobilizon.git synced 2024-12-21 15:32:32 +00:00
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-07-21 19:44:53 +02:00
parent 71f50b35b6
commit 719abcbb04
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -180,7 +180,7 @@ defmodule Mobilizon.Service.Auth.LDAPAuthenticator do
@spec search_filter(String.t(), String.t()) :: any()
defp search_filter(email, group) when is_binary(group) do
:eldap.and([
:eldap.equalityMatch('mail', to_charlist(email)),
search_filter(email, false),
:eldap.equalityMatch('memberOf', to_charlist(group))
])
end