Add change_password/3 to LDAP module

This commit is contained in:
Mark Felder 2024-10-11 15:45:09 -04:00
commit 6bc70b8b2a
2 changed files with 5 additions and 1 deletions

View file

@ -32,7 +32,7 @@ defmodule Pleroma.Web.Auth.LDAPAuthenticator do
end
def change_password(user, password, new_password, new_password) do
case GenServer.call(LDAP, {:change_password, user.nickname, password, new_password}) do
case LDAP.change_password(user.nickname, password, new_password) do
:ok -> {:ok, user}
e -> e
end