summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorAlex Gleason <alex@alexgleason.me>2020-08-02 14:53:42 -0500
committerAlex Gleason <alex@alexgleason.me>2020-08-02 14:53:42 -0500
commitdc88b6f0919cf5686af7d5b935e8ee462491704b (patch)
tree04dfcf531841f02036f7daa173796eb1727eb83a /config
parent70951d042b5d7b12608a3f73a73c757fc4204449 (diff)
Add email blacklist, fixes #1404
Diffstat (limited to 'config')
-rw-r--r--config/config.exs3
-rw-r--r--config/description.exs7
2 files changed, 9 insertions, 1 deletions
diff --git a/config/config.exs b/config/config.exs
index d31208c25..ba263bf95 100644
--- a/config/config.exs
+++ b/config/config.exs
@@ -509,7 +509,8 @@ config :pleroma, Pleroma.User,
"user_exists",
"users",
"web"
- ]
+ ],
+ email_blacklist: []
config :pleroma, Oban,
repo: Pleroma.Repo,
diff --git a/config/description.exs b/config/description.exs
index 11fbe0d78..3fe22e969 100644
--- a/config/description.exs
+++ b/config/description.exs
@@ -3021,6 +3021,7 @@ config :pleroma, :config_description, [
%{
key: :restricted_nicknames,
type: {:list, :string},
+ description: "List of nicknames users may not register with.",
suggestions: [
".well-known",
"~",
@@ -3053,6 +3054,12 @@ config :pleroma, :config_description, [
"users",
"web"
]
+ },
+ %{
+ key: :email_blacklist,
+ type: {:list, :string},
+ description: "List of email domains users may not register with.",
+ suggestions: ["mailinator.com", "maildrop.cc"]
}
]
},