Email blacklist: Update response phrasing
This commit is contained in:
parent
de3bdc63ad
commit
058daf498f
2 changed files with 2 additions and 2 deletions
|
|
@ -684,7 +684,7 @@ defmodule Pleroma.User do
|
|||
!String.ends_with?(email, ["@" <> blacklisted_domain, "." <> blacklisted_domain])
|
||||
end)
|
||||
|
||||
if valid?, do: [], else: [email: "Email domain is blacklisted"]
|
||||
if valid?, do: [], else: [credentials: "Invalid credentials"]
|
||||
end)
|
||||
|> unique_constraint(:nickname)
|
||||
|> validate_exclusion(:nickname, Config.get([User, :restricted_nicknames]))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue