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 9730f32472
commit a576d41b24
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

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