diff --git a/lib/pleroma/mfa.ex b/lib/pleroma/mfa.ex index 01b730c76..ce30cd4ad 100644 --- a/lib/pleroma/mfa.ex +++ b/lib/pleroma/mfa.ex @@ -77,7 +77,7 @@ def generate_backup_codes(%User{} = user) do {:ok, codes} else {:error, msg} -> - %{error: msg} + {:error, msg} end end