Software /
code /
prosody-modules
Changeset
5065:368bf9b06484
mod_block_registrations: Expand default list of blocked usernames (RFC 2142)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 13 Oct 2022 22:51:41 +0100 |
parents | 5064:7d33178c79f2 |
children | 5066:74145faceba2 |
files | mod_block_registrations/mod_block_registrations.lua |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_block_registrations/mod_block_registrations.lua Thu Oct 13 22:48:57 2022 +0100 +++ b/mod_block_registrations/mod_block_registrations.lua Thu Oct 13 22:51:41 2022 +0100 @@ -1,7 +1,12 @@ local st = require "util.stanza"; local nodeprep = require "util.encodings".stringprep.nodeprep; -local block_users = module:get_option_set("block_registrations_users", { "admin" }); +local block_users = module:get_option_set("block_registrations_users", { + "abuse", "admin", "administrator", "hostmaster", "info", "news", + "noc", "operator", "owner", "postmaster", "register", "registration", + "root", "security", "service", "signup", "support", "sysadmin", + "sysop", "system", "test", "trouble", "webmaster", "www", "xmpp", +}); local block_patterns = module:get_option_set("block_registrations_matching", {}); local require_pattern = module:get_option_string("block_registrations_require");