diff options
Diffstat (limited to 'server/middlewares/validators/users.ts')
-rw-r--r-- | server/middlewares/validators/users.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/server/middlewares/validators/users.ts b/server/middlewares/validators/users.ts index a595c39ec..d13c50c84 100644 --- a/server/middlewares/validators/users.ts +++ b/server/middlewares/validators/users.ts | |||
@@ -290,6 +290,10 @@ const usersVerifyEmailValidator = [ | |||
290 | } | 290 | } |
291 | ] | 291 | ] |
292 | 292 | ||
293 | const userAutocompleteValidator = [ | ||
294 | param('search').isString().not().isEmpty().withMessage('Should have a search parameter') | ||
295 | ] | ||
296 | |||
293 | // --------------------------------------------------------------------------- | 297 | // --------------------------------------------------------------------------- |
294 | 298 | ||
295 | export { | 299 | export { |
@@ -307,7 +311,8 @@ export { | |||
307 | usersAskResetPasswordValidator, | 311 | usersAskResetPasswordValidator, |
308 | usersResetPasswordValidator, | 312 | usersResetPasswordValidator, |
309 | usersAskSendVerifyEmailValidator, | 313 | usersAskSendVerifyEmailValidator, |
310 | usersVerifyEmailValidator | 314 | usersVerifyEmailValidator, |
315 | userAutocompleteValidator | ||
311 | } | 316 | } |
312 | 317 | ||
313 | // --------------------------------------------------------------------------- | 318 | // --------------------------------------------------------------------------- |