Reserve a few user names
These are all names that are used for domain.com/:route routes or projected to be.
This commit is contained in:
parent
922abcda61
commit
91724d160a
3 changed files with 44 additions and 0 deletions
|
|
@ -197,6 +197,7 @@ defmodule Pleroma.User do
|
|||
|> validate_confirmation(:password)
|
||||
|> unique_constraint(:email)
|
||||
|> unique_constraint(:nickname)
|
||||
|> validate_exclusion(:nickname, Pleroma.Config.get([Pleroma.User, :restricted_nicknames]))
|
||||
|> validate_format(:nickname, local_nickname_regex())
|
||||
|> validate_format(:email, @email_regex)
|
||||
|> validate_length(:bio, max: 1000)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue