Improve wording when editing an user through CLI

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2021-04-19 09:53:36 +02:00
parent 489787ceb5
commit 014c2da915
3 changed files with 19 additions and 16 deletions

View File

@@ -58,7 +58,11 @@ defmodule Mix.Tasks.Mobilizon.Users.Modify do
An user has been modified with the following information:
- email: #{user.email}
- Role: #{user.role}
- Activated: #{if user.confirmed_at, do: user.confirmed_at, else: "False"}
- account status: #{
if user.confirmed_at,
do: "activated on #{DateTime.to_string(user.confirmed_at)} (UTC)",
else: "disabled"
}
""")
else
{:makes_changes, false} ->