Software /
code /
prosody-modules
Annotate
mod_s2soutinjection/README.markdown @ 4832:bfd4af4caddc
mod_password_policy: Support for additional policies provided by other modules
E.g. check a password contains an uppercase character:
module:provides("password-policy", {
name = "contains_uppercase";
check_password = function (password, policy)
return (policy ~= true) or (not not password:match("%u"));
end;
})
Config:
password_policy = {
contains_uppercase = true;
}
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 22 Dec 2021 14:48:46 +0000 |
parent | 1999:e3e76e9693a1 |
child | 4931:f4a9e804c457 |
rev | line source |
---|---|
1999 | 1 --- |
2 summary: S2S connection override | |
3 ... | |
4 | |
5 # Introduction | |
6 | |
7 This module is similar to [mod\_srvinjection] but less of an hack. | |
8 | |
9 # Configuration | |
10 | |
11 ``` lua | |
12 -- In the global section | |
13 | |
14 modules_enabled = { | |
15 --- your other modules | |
16 "s2soutinjection"; | |
17 } | |
18 | |
19 s2s_connect_overrides = { | |
20 -- This one will use the default port, 5269 | |
21 ["example.com"] = "xmpp.server.local"; | |
22 | |
23 -- To set a different port: | |
24 ["another.example"] = { "non-standard-port.example", 9999 }; | |
25 } | |
26 ``` | |
27 | |
28 # Compatibility | |
29 | |
30 Requires 0.9.x or later. |