From a576d41b243fea4e6567ded2039191405cb85c3b Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Mon, 5 Oct 2020 14:45:58 +0200 Subject: [PATCH] Fix typo in atom name Signed-off-by: Thomas Citharel --- lib/service/auth/ldap_authenticator.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/service/auth/ldap_authenticator.ex b/lib/service/auth/ldap_authenticator.ex index a05fc946d..e42be59d9 100644 --- a/lib/service/auth/ldap_authenticator.ex +++ b/lib/service/auth/ldap_authenticator.ex @@ -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