Changeset

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
parents 5094:c92c87daa09e
children 5096:16db0a6e868c
files mod_sasl2_fast/README.md mod_sasl2_fast/mod_sasl2_fast.lua
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_sasl2_fast/README.md	Mon Nov 28 19:12:34 2022 +0100
+++ b/mod_sasl2_fast/README.md	Mon Nov 28 19:12:37 2022 +0100
@@ -2,6 +2,9 @@
 labels:
 - Stage-Beta
 summary: "Fast Authentication Streamlining Tokens"
+rockspec:
+  dependencies:
+  - mod_sasl2
 ---
 
 This module implements a mechanism via which clients can exchange a password
--- 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