forked from mirrors/akkoma
Comments are good when they're precise...
This commit is contained in:
parent
81126b0142
commit
2a4bca5bd7
|
@ -638,7 +638,7 @@ def force_password_reset_async(user) do
|
||||||
@spec force_password_reset(User.t()) :: {:ok, User.t()} | {:error, Ecto.Changeset.t()}
|
@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)
|
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
|
# Used to auto-register LDAP accounts which won't have a password hash stored locally
|
||||||
def register_changeset(struct, params = %{password: password})
|
def register_changeset(struct, params = %{password: password})
|
||||||
when is_nil(password) do
|
when is_nil(password) do
|
||||||
params = Map.put_new(params, :accepts_chat_messages, true)
|
params = Map.put_new(params, :accepts_chat_messages, true)
|
||||||
|
|
Loading…
Reference in a new issue