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