1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2021 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.MFA.Settings do
12 field(:enabled, :boolean, default: false)
13 field(:backup_codes, {:array, :string}, default: [])
15 embeds_one :totp, TOTP, on_replace: :delete, primary_key: false do
16 field(:secret, :string)
18 field(:delivery_type, :string, default: "app")
19 field(:confirmed, :boolean, default: false)
23 def mfa_methods, do: @mfa_methods