Software /
code /
prosody-modules
Diff
mod_block_registrations/mod_block_registrations.lua @ 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 |
parent | 1697:27aa58ed3e2e |
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");