Mercurial > prosody-modules
comparison 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 |
parents | dda2af7ed02f |
children | 471cbb583a1d |
comparison
equal
deleted
inserted
replaced
5094:c92c87daa09e | 5095:745c7f4cca40 |
---|---|
3 local id = require "util.id"; | 3 local id = require "util.id"; |
4 local jid = require "util.jid"; | 4 local jid = require "util.jid"; |
5 local st = require "util.stanza"; | 5 local st = require "util.stanza"; |
6 local now = require "util.time".now; | 6 local now = require "util.time".now; |
7 local hash = require "util.hashes"; | 7 local hash = require "util.hashes"; |
8 | |
9 module:depends("sasl2"); | |
8 | 10 |
9 -- Tokens expire after 21 days by default | 11 -- Tokens expire after 21 days by default |
10 local fast_token_ttl = module:get_option_number("sasl2_fast_token_ttl", 86400*21); | 12 local fast_token_ttl = module:get_option_number("sasl2_fast_token_ttl", 86400*21); |
11 -- Tokens are automatically rotated daily | 13 -- Tokens are automatically rotated daily |
12 local fast_token_min_ttl = module:get_option_number("sasl2_fast_token_min_ttl", 86400); | 14 local fast_token_min_ttl = module:get_option_number("sasl2_fast_token_min_ttl", 86400); |