mod_sasl2_fast: Add explicit dependency on mod_sasl2
authorKim Alvefur <zash@zash.se>
Mon, 28 Nov 2022 19:12:37 +0100
changeset 5099 745c7f4cca40
parent 5098 c92c87daa09e
child 5100 16db0a6e868c
mod_sasl2_fast: Add explicit dependency on mod_sasl2 Ensures mod_sasl2 is installed and loaded so it can fire the relevant events.
mod_sasl2_fast/README.md
mod_sasl2_fast/mod_sasl2_fast.lua
--- 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