Spaces:
Runtime error
Runtime error
import { body } from 'express-validator'; | |
export const validateResetPassword = [ | |
body('token').notEmpty().withMessage('Reset token is required'), | |
body('newPassword') | |
.isLength({ min: 8 }) | |
.withMessage('Password must be at least 8 characters long') | |
]; |