Started work on URL-Token based password reset system. Email not yet implemented.
This commit is contained in:
parent
8ee92541de
commit
ed698f40c7
22 changed files with 580 additions and 16 deletions
|
|
@ -36,5 +36,7 @@ module.exports = {
|
|||
|
||||
bio: (field = 'bio') => body(field).optional().escape().trim().isLength({min: 1, max: 1000}),
|
||||
|
||||
rank: (field = 'rank') => body(field).escape().trim().custom(isRank)
|
||||
rank: (field = 'rank') => body(field).escape().trim().custom(isRank),
|
||||
|
||||
securityToken: (field = 'token') => check(field).escape().trim().isHexadecimal().isLength({min:32, max:32})
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue