Mercurial > prosody-modules
view mod_captcha_registration/install.lua @ 5519:83ebfc367169
mod_http_oauth2: Return Authentication Time per OpenID Core Section 2
Mandatory To Implement, either MUST include or OPTIONAL depending on
things we don't look at, so might as well include it all the time.
Since we do not persist authentication state with cookies or such, the
authentication time will always be some point between the user being
sent to the authorization endpoint and the time they are sent back to
the client application.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 05 Jun 2023 22:32:44 +0200 |
parents | 985bfc6e8cad |
children |
line wrap: on
line source
-- simple installer for mod_register with dependicies files = {"util/dataforms.lua", "modules/mod_register.lua", "FiraSans-Regular.ttf"} default_path = "/usr/lib/prosody" function exists(name) if type(name) ~= "string" then return false end return os.rename(name, name) and true or false end function copy_file(name, target) local file = io.open(name) local data = file:read("*all") file:close() local file = io.open(target, "w") file:write(data) file:close() end function copy_files(path) for index = 1, #files do local filename = files[index] os.remove(default_path.."/"..filename) copy_file(filename, default_path.."/"..filename) print("copied: "..default_path.."/"..filename) end end if not exists(default_path) then io.write("\nEnter prosody path [/usr/lib/prosody]: ") path = io.read("*line") end copy_files(path or default_path)