# HG changeset patch # User Kim Alvefur # Date 1669659157 -3600 # Node ID 745c7f4cca4036a786ccfc7808bad8f22315914e # Parent c92c87daa09e9aa1cc46928bbac055f7c65c41f9 mod_sasl2_fast: Add explicit dependency on mod_sasl2 Ensures mod_sasl2 is installed and loaded so it can fire the relevant events. diff -r c92c87daa09e -r 745c7f4cca40 mod_sasl2_fast/README.md --- 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 diff -r c92c87daa09e -r 745c7f4cca40 mod_sasl2_fast/mod_sasl2_fast.lua --- 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