X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=lib%2Fpleroma%2Fuser.ex;h=d1436a688455b2eeab07c883d612a56eeb1103c3;hb=47698fc322da58894dd41c1bfd5ca0376200dc5e;hp=6d39c9d1b1e8986827e15c593b93fc12a2963956;hpb=81126b0142ec54c785952d0c84a2bdef76965fc7;p=akkoma diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index 6d39c9d1b..d1436a688 100644 --- a/lib/pleroma/user.ex +++ b/lib/pleroma/user.ex @@ -638,8 +638,8 @@ defmodule Pleroma.User do @spec force_password_reset(User.t()) :: {:ok, User.t()} | {:error, Ecto.Changeset.t()} def force_password_reset(user), do: update_password_reset_pending(user, true) - # Used to auto-register LDAP accounts which don't have a password hash - def register_changeset(struct, params = %{password: password}) + # Used to auto-register LDAP accounts which won't have a password hash stored locally + def register_changeset_ldap(struct, params = %{password: password}) when is_nil(password) do params = Map.put_new(params, :accepts_chat_messages, true)