diff options
author | Haelwenn <contact+git.pleroma.social@hacktivis.me> | 2022-09-27 21:46:03 +0000 |
---|---|---|
committer | Haelwenn <contact+git.pleroma.social@hacktivis.me> | 2022-09-27 21:46:03 +0000 |
commit | 5d7d6233905f280c9d52cf1fc15e8f54280a3e58 (patch) | |
tree | 62da97ad913f3fc92a404c6e3b4efb7cdcc42431 /lib/mix/tasks | |
parent | ac95b8b4f3dda961e13745e1f07990e3ccc37bb9 (diff) | |
parent | ec80a1e405c7b1d893c08ea99e824f2c13719c3a (diff) | |
download | pleroma-5d7d6233905f280c9d52cf1fc15e8f54280a3e58.tar.gz pleroma-5d7d6233905f280c9d52cf1fc15e8f54280a3e58.zip |
Merge branch 'bugfix/elixir-1.14' into 'develop'
Bugfix: Elixir 1.14
See merge request pleroma/pleroma!3740
Diffstat (limited to 'lib/mix/tasks')
-rw-r--r-- | lib/mix/tasks/pleroma/user.ex | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/mix/tasks/pleroma/user.ex b/lib/mix/tasks/pleroma/user.ex index 50ffb7f27..929fa1717 100644 --- a/lib/mix/tasks/pleroma/user.ex +++ b/lib/mix/tasks/pleroma/user.ex @@ -112,9 +112,10 @@ defmodule Mix.Tasks.Pleroma.User do {:ok, token} <- Pleroma.PasswordResetToken.create_token(user) do shell_info("Generated password reset token for #{user.nickname}") - IO.puts("URL: #{Pleroma.Web.Router.Helpers.reset_password_url(Pleroma.Web.Endpoint, - :reset, - token.token)}") + url = + Pleroma.Web.Router.Helpers.reset_password_url(Pleroma.Web.Endpoint, :reset, token.token) + + IO.puts("URL: #{url}") else _ -> shell_error("No local user #{nickname}") |