File

mod_auth_external_insecure/examples/lua/prosody-auth-example.lua @ 6252:460e61051038

mod_twitter: twitter is broken diff --git a/mod_twitter/README.md b/mod_twitter/README.md --- a/mod_twitter/README.md +++ b/mod_twitter/README.md @@ -1,6 +1,6 @@ --- labels: -- 'Stage-Alpha' +- 'Stage-Broken' summary: 'Simple example of working component and HTTP polling.' ...
author Menel <menel@snikket.de>
date Mon, 12 May 2025 11:43:09 +0200
parent 3884:f84ede3e9e3b
line wrap: on
line source

local actions = {};

function actions.auth(data)
	local user, host, pass = data:match("^([^:]+):([^:]+):(.+)$");
	if user == "someone" then
		return "1";
	end
end

for line in io.lines() do
	local action, data = line:match("^([^:]+)(.*)$");
	print(actions[action] and actions[action](data) or "0");
end