Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import Intersection from 'rulr/Intersection';
import Record from 'rulr/Record';
import { VARCHAR_LENGTH } from '../../../../../../constants';
import Email from '../../../../../../utils/validation/rules/Email';
import Password from '../../../../../../utils/validation/rules/Password';
import String from '../../../../../../utils/validation/rules/String';
import baseSchema from '../base/schema';
export const schema = {
...baseSchema,
email: Intersection([String(0, VARCHAR_LENGTH), Email()]),
password: Intersection([String(0, VARCHAR_LENGTH), Password()]),
};
const rules = Record(schema);
export default rules;
import Intersection from 'rulr/Intersection';
import Object from 'rulr/Object';
import Record from 'rulr/Record';
import { VARCHAR_LENGTH } from '../../../../../../constants';
import Email from '../../../../../../utils/validation/rules/Email';
import Match from '../../../../../../utils/validation/rules/Match';
import Password from '../../../../../../utils/validation/rules/Password';
import String from '../../../../../../utils/validation/rules/String';
import { schema as baseSchema } from '../../users/createItem';
export const schema = {
...baseSchema,
email: Intersection([String(0, VARCHAR_LENGTH), Email()]),
password: Intersection([String(0, VARCHAR_LENGTH), Password()]),
password_confirmation: Intersection([String(0, VARCHAR_LENGTH), Password()]),
};
const rules = Intersection([
Object,
Record(schema),
Match('password', 'password_confirmation'),
]);
export default rules;
import Intersection from 'rulr/Intersection';
import Object from 'rulr/Object';
import Record from 'rulr/Record';
import { VARCHAR_LENGTH } from '../../../../../../constants';
import Email from '../../../../../../utils/validation/rules/Email';
import Match from '../../../../../../utils/validation/rules/Match';
import Password from '../../../../../../utils/validation/rules/Password';
import String from '../../../../../../utils/validation/rules/String';
import { schema as baseSchema } from '../../users/createItem';
export const schema = {
...baseSchema,
email: Intersection([String(0, VARCHAR_LENGTH), Email()]),
password: Intersection([String(0, VARCHAR_LENGTH), Password()]),
password_confirmation: Intersection([String(0, VARCHAR_LENGTH), Password()]),
};
const rules = Intersection([
Object,
Record(schema),
Match('password', 'password_confirmation'),
]);
export default rules;
import Intersection from 'rulr/Intersection';
import Object from 'rulr/Object';
import Record from 'rulr/Record';
import { UUID_LENGTH, VARCHAR_LENGTH } from '../../../../../../constants';
import Match from '../../../../../../utils/validation/rules/Match';
import Password from '../../../../../../utils/validation/rules/Password';
import String from '../../../../../../utils/validation/rules/String';
export const schema = {
password: Intersection([String(0, VARCHAR_LENGTH),Password()]),
password_confirmation: Intersection([String(0, VARCHAR_LENGTH),Password()]),
token: String(UUID_LENGTH, UUID_LENGTH),
};
const rules = Intersection([
Object,
Record(schema),
Match('password', 'password_confirmation'),
]);
export default rules;
import Intersection from 'rulr/Intersection';
import Object from 'rulr/Object';
import Record from 'rulr/Record';
import { UUID_LENGTH, VARCHAR_LENGTH } from '../../../../../../constants';
import Match from '../../../../../../utils/validation/rules/Match';
import Password from '../../../../../../utils/validation/rules/Password';
import String from '../../../../../../utils/validation/rules/String';
export const schema = {
password: Intersection([String(0, VARCHAR_LENGTH),Password()]),
password_confirmation: Intersection([String(0, VARCHAR_LENGTH),Password()]),
token: String(UUID_LENGTH, UUID_LENGTH),
};
const rules = Intersection([
Object,
Record(schema),
Match('password', 'password_confirmation'),
]);
export default rules;
import Record from 'rulr/Record';
import { VARCHAR_LENGTH } from '../../../../../../constants';
import Email from '../../../../../../utils/validation/rules/Email';
import Match from '../../../../../../utils/validation/rules/Match';
import Password from '../../../../../../utils/validation/rules/Password';
import String from '../../../../../../utils/validation/rules/String';
import { schema as baseSchema } from '../../users/createItem';
export const schema = {
...baseSchema,
email: Intersection([String(0, VARCHAR_LENGTH), Email()]),
password: Intersection([String(0, VARCHAR_LENGTH), Password()]),
password_confirmation: Intersection([String(0, VARCHAR_LENGTH), Password()]),
};
const rules = Intersection([
Object,
Record(schema),
Match('password', 'password_confirmation'),
]);
export default rules;
import Intersection from 'rulr/Intersection';
import Object from 'rulr/Object';
import Record from 'rulr/Record';
import { UUID_LENGTH, VARCHAR_LENGTH } from '../../../../../../constants';
import Match from '../../../../../../utils/validation/rules/Match';
import Password from '../../../../../../utils/validation/rules/Password';
import String from '../../../../../../utils/validation/rules/String';
export const schema = {
password: Intersection([String(0, VARCHAR_LENGTH),Password()]),
password_confirmation: Intersection([String(0, VARCHAR_LENGTH),Password()]),
token: String(UUID_LENGTH, UUID_LENGTH),
};
const rules = Intersection([
Object,
Record(schema),
Match('password', 'password_confirmation'),
]);
export default rules;
import Intersection from 'rulr/Intersection';
import Object from 'rulr/Object';
import Record from 'rulr/Record';
import { VARCHAR_LENGTH } from '../../../../../../constants';
import Email from '../../../../../../utils/validation/rules/Email';
import Match from '../../../../../../utils/validation/rules/Match';
import Password from '../../../../../../utils/validation/rules/Password';
import String from '../../../../../../utils/validation/rules/String';
import { schema as baseSchema } from '../../users/createItem';
export const schema = {
...baseSchema,
email: Intersection([String(0, VARCHAR_LENGTH), Email()]),
password: Intersection([String(0, VARCHAR_LENGTH), Password()]),
password_confirmation: Intersection([String(0, VARCHAR_LENGTH), Password()]),
};
const rules = Intersection([
Object,
Record(schema),
Match('password', 'password_confirmation'),
]);
export default rules;
import Intersection from 'rulr/Intersection';
import Record from 'rulr/Record';
import { VARCHAR_LENGTH } from '../../../../../../constants';
import Email from '../../../../../../utils/validation/rules/Email';
import Password from '../../../../../../utils/validation/rules/Password';
import String from '../../../../../../utils/validation/rules/String';
import baseSchema from '../base/schema';
export const schema = {
...baseSchema,
email: Intersection([String(0, VARCHAR_LENGTH), Email()]),
password: Intersection([String(0, VARCHAR_LENGTH), Password()]),
};
const rules = Record(schema);
export default rules;