Fix typo in atom name

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2020-10-05 14:45:58 +02:00
parent fb23d2a7e4
commit 680b577f1b

View File

@ -78,7 +78,7 @@ defmodule Mobilizon.Service.Auth.LDAPAuthenticator do
end end
else else
{:error, err} {:error, err}
when err in [:ldap_search_email_not_found, :ldap_search_email_not_found] -> when err in [:ldap_search_email_not_found, :ldap_search_missing_attributes] ->
{:ldap, err} {:ldap, err}
{:error, error} -> {:error, error} ->
@ -146,7 +146,7 @@ defmodule Mobilizon.Service.Auth.LDAPAuthenticator do
{:cn, err} -> {:cn, err} ->
Logger.error("Could not find LDAP attribute CN: #{inspect(err)}") Logger.error("Could not find LDAP attribute CN: #{inspect(err)}")
{:error, :ldap_searcy_missing_attributes} {:error, :ldap_search_missing_attributes}
error -> error ->
error error