diff options
author | Egor Kislitsyn <egor@kislitsyn.com> | 2019-04-11 17:22:42 +0700 |
---|---|---|
committer | Egor Kislitsyn <egor@kislitsyn.com> | 2019-04-11 17:22:42 +0700 |
commit | db4badc6aa71df4cb9372ef4aff699399516ffb2 (patch) | |
tree | 126b2d7911fd81c9ce70129bba166317357cdf73 /lib/mix/tasks/pleroma/user.ex | |
parent | 0f2f7d2cec8297b1b5645643d7584cde561ce628 (diff) | |
download | pleroma-db4badc6aa71df4cb9372ef4aff699399516ffb2.tar.gz |
move user disable into deactivation
Diffstat (limited to 'lib/mix/tasks/pleroma/user.ex')
-rw-r--r-- | lib/mix/tasks/pleroma/user.ex | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/mix/tasks/pleroma/user.ex b/lib/mix/tasks/pleroma/user.ex index 78493231c..441168df2 100644 --- a/lib/mix/tasks/pleroma/user.ex +++ b/lib/mix/tasks/pleroma/user.ex @@ -53,10 +53,6 @@ defmodule Mix.Tasks.Pleroma.User do mix pleroma.user toggle_activated NICKNAME - ## Disable or enable the user's account. - - mix pleroma.user toggle_disabled NICKNAME - ## Unsubscribe local users from user's account and deactivate it mix pleroma.user unsubscribe NICKNAME @@ -190,20 +186,6 @@ defmodule Mix.Tasks.Pleroma.User do end end - def run(["toggle_disabled", nickname]) do - Common.start_pleroma() - - case User.get_by_nickname(nickname) do - %User{} = user -> - {:ok, user} = User.disable(user, !user.info.disabled) - status = if(user.info.disabled, do: "ON", else: "OFF") - Mix.shell().info("Disabled status of #{nickname}: #{status}") - - _ -> - Mix.shell().error("No user #{nickname}") - end - end - def run(["reset_password", nickname]) do Common.start_pleroma() |