mirror of
https://git.phreedom.club/localhost_frssoft/fediauth
synced 2025-03-15 06:01:23 +00:00
test code gen
This commit is contained in:
parent
1162262b9c
commit
e0d58ad2ec
1 changed files with 8 additions and 0 deletions
|
@ -1,5 +1,13 @@
|
|||
|
||||
mtt.register("otp.qrcode", function(callback)
|
||||
assert(type(otp.qrcode) == "function")
|
||||
|
||||
local url = "otpauth://totp/abc:myaccount?algorithm=SHA1&digits=6&issuer=abc&period=30&"
|
||||
.. "secret=N6JGKMEKU2E6HQMLLNMJKBRRGVQ2ZKV7"
|
||||
|
||||
local ok, code = otp.qrcode(url)
|
||||
assert(ok)
|
||||
assert(code)
|
||||
|
||||
callback()
|
||||
end)
|
Loading…
Add table
Reference in a new issue