Add change_password/3 to LDAP module
This commit is contained in:
parent
ff039f9530
commit
6bc70b8b2a
2 changed files with 5 additions and 1 deletions
|
|
@ -104,6 +104,10 @@ defmodule Pleroma.LDAP do
|
|||
GenServer.call(__MODULE__, {:bind_user, name, password})
|
||||
end
|
||||
|
||||
def change_password(name, password, new_password) do
|
||||
GenServer.call(__MODULE__, {:change_password, name, password, new_password})
|
||||
end
|
||||
|
||||
defp connect do
|
||||
ldap = Config.get(:ldap, [])
|
||||
host = Keyword.get(ldap, :host, "localhost")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue