diff options
Diffstat (limited to 'lib/pleroma/web/auth/ldap_authenticator.ex')
-rw-r--r-- | lib/pleroma/web/auth/ldap_authenticator.ex | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/pleroma/web/auth/ldap_authenticator.ex b/lib/pleroma/web/auth/ldap_authenticator.ex index d0513263c..17e08a2a6 100644 --- a/lib/pleroma/web/auth/ldap_authenticator.ex +++ b/lib/pleroma/web/auth/ldap_authenticator.ex @@ -4,7 +4,6 @@ defmodule Pleroma.Web.Auth.LDAPAuthenticator do alias Pleroma.User - alias Pleroma.User.Registration require Logger @@ -117,9 +116,9 @@ defmodule Pleroma.Web.Auth.LDAPAuthenticator do _ -> params end - changeset = Registration.register_changeset_ldap(%User{}, params) + changeset = User.register_changeset_ldap(%User{}, params) - case Registration.register(changeset) do + case User.register(changeset) do {:ok, user} -> user error -> error end |