mod_sasl2_fast: Add explicit dependency on mod_sasl2
Ensures mod_sasl2 is installed and loaded so it can fire the relevant
events.
--- 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