Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

equality error #330

Open
Alarees opened this issue Apr 26, 2020 · 0 comments
Open

equality error #330

Alarees opened this issue Apr 26, 2020 · 0 comments

Comments

@Alarees
Copy link

Alarees commented Apr 26, 2020

i have error in equality attribute
my code :

const constraints = {
  trader_password: {
    presence: { allowEmpty: false, message: "empty message" },
    length: {
      maximum: 128,
    },
  passwordConfirm: {
    presence: { allowEmpty: false, message: empty },
    equality: {
        attribute:"trader_password",
        message : "my message"
     },
  }
};

validate({trader_password:"1234",passwordConfirm:"1234"}, constraints);
// => {passwordConfirm: ["my message"]}

PS : i already read this issues #222

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant