Spaces:
Runtime error
Runtime error
File size: 331 Bytes
52e6d31 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import { checkSchema } from 'express-validator';
export const validateLogin = checkSchema({
email: {
notEmpty: {
errorMessage: 'Email is required',
},
isEmail: {
errorMessage: 'Invalid email address',
},
},
password: {
notEmpty: {
errorMessage: 'Password is required',
},
},
});
|