From e0d58ad2ec8735b325112390d13e27a91f95028b Mon Sep 17 00:00:00 2001 From: BuckarooBanzay Date: Sat, 28 Jan 2023 17:54:36 +0100 Subject: [PATCH] test code gen --- qrencode.spec.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qrencode.spec.lua b/qrencode.spec.lua index c1497fb..fb48891 100644 --- a/qrencode.spec.lua +++ b/qrencode.spec.lua @@ -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) \ No newline at end of file