You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
FLAD/src/Api/dist/database/schema/User/UserValidation.js

20 lines
875 B

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const joi_1 = __importDefault(require("joi"));
const register = joi_1.default.object({
name: joi_1.default.string().max(30).required(),
email: joi_1.default.string().email().required(),
password: joi_1.default.string().min(6).required(),
// can add an field like confimPassword and cheked that the password is equal to the confirmPassword
idSpotify: joi_1.default.string(),
idFlad: joi_1.default.string(),
});
const login = joi_1.default.object({
email: joi_1.default.string().email().required(),
password: joi_1.default.string().required(),
});
exports.default = { register, login };
//# sourceMappingURL=UserValidation.js.map