added TODOs, improved password validation
This commit is contained in:
@ -16,7 +16,7 @@ export default class UserValidate { // validate input for user
|
||||
.max(128),
|
||||
|
||||
pass: Joi.string()
|
||||
.pattern(new RegExp('^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])(?=.*[!"#%&\'()*+,-.\\/:;<=>?@[\\]^_`{|}~])(?=\\S+$).{8,}$'))
|
||||
.pattern(/^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])(?=.*[!"#%&'()*+,-.\/:;<=>?@[\]^_`{|}~])(?=\S+$)[a-zA-Z0-9!"#%&'()*+,\-.\/:;<=>?@[\]^_`{|}~]{8,}$/)
|
||||
.max(128),
|
||||
|
||||
level: Joi.string()
|
||||
|
Reference in New Issue
Block a user