Mercurial > prosody-modules
comparison mod_block_registrations/README.markdown @ 5650:0eb2d5ea2428
merge
author | Stephen Paul Weber <singpolyma@singpolyma.net> |
---|---|
date | Sat, 06 May 2023 19:40:23 -0500 |
parents | 72f23107beb4 |
children |
comparison
equal
deleted
inserted
replaced
5649:2c69577b28c2 | 5650:0eb2d5ea2428 |
---|---|
17 "block_registrations"; | 17 "block_registrations"; |
18 } | 18 } |
19 | 19 |
20 You can then set some options to configure your desired policy: | 20 You can then set some options to configure your desired policy: |
21 | 21 |
22 Option Default Description | 22 Option Default Description |
23 -------------------------------- --------------- ------------------------------------------------------------------------------------------------------------------------------------------------- | 23 ------------------------------ ------------------- ----------------------------------------------------------------------------------------------------------------------------------------------- |
24 block\_registrations\_users `{ "admin" }` A list of reserved usernames | 24 block_registrations_users *See source code* A list of reserved usernames |
25 block\_registrations\_matching `{ }` A list of [Lua patterns](http://www.lua.org/manual/5.1/manual.html#5.4.1) matching reserved usernames (slower than block\_registrations\_users) | 25 block_registrations_matching `{ }` A list of [Lua patterns](http://www.lua.org/manual/5.1/manual.html#5.4.1) matching reserved usernames (slower than block_registrations_users) |
26 block\_registrations\_require `nil` A pattern that registered user accounts MUST match to be allowed | 26 block_registrations_require `nil` A pattern that registered user accounts MUST match to be allowed |
27 | 27 |
28 Some examples: | 28 Some examples: |
29 | 29 |
30 block_registrations_users = { "admin", "root", "xmpp" } | 30 block_registrations_users = { "admin", "root", "xmpp" } |
31 block_registrations_matching = { | 31 block_registrations_matching = { |
34 block_registrations_require = "^[a-zA-Z0-9_.-]+$" -- Allow only simple ASCII characters in usernames | 34 block_registrations_require = "^[a-zA-Z0-9_.-]+$" -- Allow only simple ASCII characters in usernames |
35 | 35 |
36 Compatibility | 36 Compatibility |
37 ============= | 37 ============= |
38 | 38 |
39 ----- ------------- | 39 ------ ------- |
40 0.9 Works | 40 0.12 Works |
41 0.8 Should work | 41 0.11 Work |
42 ----- ------------- | 42 ------ ------- |
43 | |
44 |