Skip to content
Snippets Groups Projects
Verified Commit 30920ad1 authored by Alex Gleason's avatar Alex Gleason
Browse files

Fix #2172 HTTP error on password reset

parent 8b6ac45f
No related branches found
No related tags found
No related merge requests found
Pipeline #31273 failed
......@@ -5,6 +5,8 @@
defmodule Pleroma.Web.MastodonAPI.AuthController do
use Pleroma.Web, :controller
import Pleroma.Web.ControllerHelper, only: [json_response: 3]
alias Pleroma.User
alias Pleroma.Web.OAuth.App
alias Pleroma.Web.OAuth.Authorization
......@@ -61,9 +63,7 @@ def password_reset(conn, params) do
TwitterAPI.password_reset(nickname_or_email)
conn
|> put_status(:no_content)
|> json("")
json_response(conn, :no_content)
end
defp local_mastodon_root_path(conn) do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment