Software /
code /
prosody
Comparison
plugins/mod_tokenauth.lua @ 13276:c34266c061c9
mod_tokenauth: Set name/description on cleanup job
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 21 Oct 2023 12:56:39 +0200 |
parent | 13275:5db61e0dfc62 |
child | 13305:852a61c720d0 |
comparison
equal
deleted
inserted
replaced
13275:5db61e0dfc62 | 13276:c34266c061c9 |
---|---|
345 sasl.token_info = token_info; | 345 sasl.token_info = token_info; |
346 return token_user, true, token_info; | 346 return token_user, true, token_info; |
347 end; | 347 end; |
348 end | 348 end |
349 | 349 |
350 module:daily(function() | 350 module:daily("clear expired grants", function() |
351 for username in token_store:items() do | 351 for username in token_store:items() do |
352 get_user_grants(username); -- clears out expired grants | 352 get_user_grants(username); -- clears out expired grants |
353 end | 353 end |
354 end) | 354 end) |