1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.Web.OAuth.MFAView do
7 import Phoenix.HTML.Form
9 alias Pleroma.Web.Gettext
11 def render("mfa_response.json", %{token: token, user: user}) do
13 error: "mfa_required",
14 mfa_token: token.token,
15 supported_challenge_types: MFA.supported_methods(user)