Spaces:
Runtime error
Runtime error
Download src/validators/login.validator.ts from sifars/automated-invoice-processing-agent-backend: direct link, hf CLI and curl.
- Browser
- Download file 331 Bytes
-
https://huggingface.co/spaces/sifars/automated-invoice-processing-agent-backend/resolve/main/src/validators/login.validator.ts
- Command line
-
hf download hf://spaces/sifars/automated-invoice-processing-agent-backend/src/validators/login.validator.ts
-
curl -L -o login.validator.ts https://huggingface.co/spaces/sifars/automated-invoice-processing-agent-backend/resolve/main/src/validators/login.validator.ts
331 Bytes
| 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', | |
| }, | |
| }, | |
| }); | |