mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2025-01-03 05:48:42 +00:00
Credo
This commit is contained in:
parent
9264b21907
commit
ead287d623
1 changed files with 2 additions and 2 deletions
|
@ -51,7 +51,7 @@ defmodule Pleroma.LDAP do
|
||||||
{:noreply, state}
|
{:noreply, state}
|
||||||
end
|
end
|
||||||
|
|
||||||
defp do_handle_connect() do
|
defp do_handle_connect do
|
||||||
state =
|
state =
|
||||||
case connect() do
|
case connect() do
|
||||||
{:ok, connection} ->
|
{:ok, connection} ->
|
||||||
|
@ -86,7 +86,7 @@ defmodule Pleroma.LDAP do
|
||||||
:ok
|
:ok
|
||||||
end
|
end
|
||||||
|
|
||||||
defp connect() do
|
defp connect do
|
||||||
ldap = Config.get(:ldap, [])
|
ldap = Config.get(:ldap, [])
|
||||||
host = Keyword.get(ldap, :host, "localhost")
|
host = Keyword.get(ldap, :host, "localhost")
|
||||||
port = Keyword.get(ldap, :port, 389)
|
port = Keyword.get(ldap, :port, 389)
|
||||||
|
|
Loading…
Reference in a new issue