projects
/
akkoma
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
remove `unread_conversation_count` from User
[akkoma]
/
test
/
mfa
/
totp_test.exs
1
defmodule Pleroma.MFA.TOTPTest do
2
use Pleroma.DataCase
3
4
alias Pleroma.MFA.TOTP
5
6
test "create provisioning_uri to generate qrcode" do
7
uri =
8
TOTP.provisioning_uri("test-secrcet", "test@example.com",
9
issuer: "Plerome-42",
10
digits: 8,
11
period: 60
12
)
13
14
assert uri ==
15
"otpauth://totp/test@example.com?digits=8&issuer=Plerome-42&period=60&secret=test-secrcet"
16
end
17
end