Diff

mod_sasl2_fast/mod_sasl2_fast.lua @ 5095:745c7f4cca40

mod_sasl2_fast: Add explicit dependency on mod_sasl2 Ensures mod_sasl2 is installed and loaded so it can fire the relevant events.
author Kim Alvefur <zash@zash.se>
date Mon, 28 Nov 2022 19:12:37 +0100
parent 5084:dda2af7ed02f
child 5137:471cbb583a1d
line wrap: on
line diff
--- a/mod_sasl2_fast/mod_sasl2_fast.lua	Mon Nov 28 19:12:34 2022 +0100
+++ b/mod_sasl2_fast/mod_sasl2_fast.lua	Mon Nov 28 19:12:37 2022 +0100
@@ -6,6 +6,8 @@
 local now = require "util.time".now;
 local hash = require "util.hashes";
 
+module:depends("sasl2");
+
 -- Tokens expire after 21 days by default
 local fast_token_ttl = module:get_option_number("sasl2_fast_token_ttl", 86400*21);
 -- Tokens are automatically rotated daily