Add email blacklist, fixes #1404

This commit is contained in:
Alex Gleason 2020-08-02 14:53:42 -05:00
commit dc88b6f091
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
5 changed files with 47 additions and 2 deletions

View file

@ -509,7 +509,8 @@ config :pleroma, Pleroma.User,
"user_exists",
"users",
"web"
]
],
email_blacklist: []
config :pleroma, Oban,
repo: Pleroma.Repo,

View file

@ -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"]
}
]
},