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.MFA.TOTPTest do
6 use Pleroma.DataCase, async: true
10 import Pleroma.Tests.Helpers, only: [uri_equal?: 2]
12 test "create provisioning_uri to generate qrcode" do
14 TOTP.provisioning_uri("test-secrcet", "test@example.com",
22 "otpauth://totp/test@example.com?digits=8&issuer=Plerome-42&period=60&secret=test-secrcet"