view mod_log_mark/mod_log_mark.lua @ 6245:7e4238d2989c

mod_http_oauth2: Fire authentication events in password grant Allows for e.g. audit logging and rate limiting modules to catch login attempts, successful or otherwise, that come through here.
author Kim Alvefur <zash@zash.se>
date Wed, 04 Jun 2025 17:32:19 +0200
parents 7be158b3376f
children
line wrap: on
line source

module:set_global();

local log = _G.log;

module:add_timer(60-os.date("%S"), function (now)
	log("info", "-- MARK --");
	return 90 - ((now + 30) % 60);
end);