UNPKG

ddd-tool-kit

Version:

A development tool kit for using Domain Driven Design in your Web API Node.js

21 lines (20 loc) 956 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.INVALID_INCORRECT_PASSWORD = exports.INVALID_PASSWORD_IS_NOT_HASHED = exports.INVALID_PASSWORD_ALREADY_HASHED = exports.INVALID_USER_PASSWORD = void 0; const http_status_enum_1 = require("../../../utils/enums/http-status.enum"); exports.INVALID_USER_PASSWORD = { message: 'the password must have at least 20 characters, one uppercase letter and one lowercase letter', statusCode: http_status_enum_1.HttpStatus.BAD_REQUEST, }; exports.INVALID_PASSWORD_ALREADY_HASHED = { message: 'password already hashed', statusCode: http_status_enum_1.HttpStatus.BAD_REQUEST, }; exports.INVALID_PASSWORD_IS_NOT_HASHED = { message: 'password is not hashed', statusCode: http_status_enum_1.HttpStatus.BAD_REQUEST, }; exports.INVALID_INCORRECT_PASSWORD = { message: 'invalid incorrect credentials', statusCode: http_status_enum_1.HttpStatus.BAD_REQUEST, };