Mercurial > prosody-modules
comparison mod_password_reset/mod_password_reset.lua @ 3551:7fc6a63c3bd0
mod_password_reset: Remove unused local [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 05 Apr 2019 19:02:43 +0200 |
parents | b059a3fb2a58 |
children | 75b6e5df65f9 |
comparison
equal
deleted
inserted
replaced
3550:8079e9c6d419 | 3551:7fc6a63c3bd0 |
---|---|
6 local http_formdecode = require "net.http".formdecode; | 6 local http_formdecode = require "net.http".formdecode; |
7 local usermanager = require "core.usermanager"; | 7 local usermanager = require "core.usermanager"; |
8 local dataforms_new = require "util.dataforms".new; | 8 local dataforms_new = require "util.dataforms".new; |
9 local st = require "util.stanza"; | 9 local st = require "util.stanza"; |
10 local apply_template = require"util.interpolation".new("%b{}", st.xml_escape); | 10 local apply_template = require"util.interpolation".new("%b{}", st.xml_escape); |
11 local tostring = tostring; | |
12 | 11 |
13 local reset_tokens = module:open_store(); | 12 local reset_tokens = module:open_store(); |
14 | 13 |
15 local max_token_age = module:get_option_number("password_reset_validity", 86400); | 14 local max_token_age = module:get_option_number("password_reset_validity", 86400); |
16 | 15 |