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
else
{: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}
{:error, error} ->
@ -146,7 +146,7 @@ defmodule Mobilizon.Service.Auth.LDAPAuthenticator do
{:cn, err} ->
Logger.error("Could not find LDAP attribute CN: #{inspect(err)}")
{:error, :ldap_searcy_missing_attributes}
{:error, :ldap_search_missing_attributes}
error ->
error