Updated ban UI to handle IP-Bans.
This commit is contained in:
parent
977e8e1e2e
commit
7624e1928a
8 changed files with 165 additions and 71 deletions
|
|
@ -32,11 +32,12 @@ module.exports = {
|
|||
|
||||
img: (field = 'img') => body(field).optional().isURL({require_tld: false, require_host: false}).trim(),
|
||||
|
||||
pronouns: (field = 'pronouns') => body(field).optional().escape().trim().isLength({min: 0, max: 15}),
|
||||
//Length check before escaping to keep symbols from throwing the count
|
||||
pronouns: (field = 'pronouns') => body(field).optional().trim().isLength({min: 0, max: 15}).escape(),
|
||||
|
||||
signature: (field = 'signature') => body(field).optional().escape().trim().isLength({min: 1, max: 25}),
|
||||
signature: (field = 'signature') => body(field).optional().trim().isLength({min: 1, max: 25}).escape(),
|
||||
|
||||
bio: (field = 'bio') => body(field).optional().escape().trim().isLength({min: 1, max: 1000}),
|
||||
bio: (field = 'bio') => body(field).optional().trim().isLength({min: 1, max: 1000}).escape(),
|
||||
|
||||
rank: (field = 'rank') => body(field).escape().trim().custom(isRank),
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue