mirror of
https://git.phreedom.club/localhost_frssoft/fediauth.git
synced 2024-11-29 03:11:28 +00:00
qr code lib
This commit is contained in:
parent
54866b1f47
commit
1162262b9c
|
@ -15,3 +15,7 @@ read_globals = {
|
|||
-- testing
|
||||
"mtt"
|
||||
}
|
||||
|
||||
files["qrencode.lua"] = {
|
||||
ignore = {"631"}
|
||||
}
|
6
init.lua
6
init.lua
|
@ -5,11 +5,15 @@ otp = {
|
|||
storage = minetest.get_mod_storage(),
|
||||
|
||||
-- baseXX functions
|
||||
basexx = loadfile(MP.."/basexx.lua")()
|
||||
basexx = loadfile(MP.."/basexx.lua")(),
|
||||
|
||||
-- qr code
|
||||
qrcode = loadfile(MP.."/qrencode.lua")().qrcode
|
||||
}
|
||||
|
||||
dofile(MP.."/functions.lua")
|
||||
|
||||
if minetest.get_modpath("mtt") and mtt.enabled then
|
||||
dofile(MP.."/functions.spec.lua")
|
||||
dofile(MP.."/qrencode.spec.lua")
|
||||
end
|
1325
qrencode.lua
Normal file
1325
qrencode.lua
Normal file
File diff suppressed because it is too large
Load diff
5
qrencode.spec.lua
Normal file
5
qrencode.spec.lua
Normal file
|
@ -0,0 +1,5 @@
|
|||
|
||||
mtt.register("otp.qrcode", function(callback)
|
||||
assert(type(otp.qrcode) == "function")
|
||||
callback()
|
||||
end)
|
Loading…
Reference in a new issue