Fix response
authorMaxim Filippov <colixer@gmail.com>
Wed, 18 Sep 2019 15:06:49 +0000 (18:06 +0300)
committerMaxim Filippov <colixer@gmail.com>
Wed, 18 Sep 2019 15:06:49 +0000 (18:06 +0300)
lib/pleroma/web/admin_api/admin_api_controller.ex

index 4421b30c8d533332053b87f31781e60eba49bc8a..54ab6e032b8fa84be389fbf7c4061e345dd59c4f 100644 (file)
@@ -438,7 +438,7 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIController do
     conn
     |> json(%{
       token: token.token,
-      link: "#{protocol}://#{host}/api/pleroma/password_reset/#{token}"
+      link: "#{protocol}://#{host}/api/pleroma/password_reset/#{token.token}"
     })
   end