Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于same验证的一个问题 #18

Open
huaSoftware opened this issue Mar 17, 2018 · 0 comments
Open

关于same验证的一个问题 #18

huaSoftware opened this issue Mar 17, 2018 · 0 comments

Comments

@huaSoftware
Copy link

huaSoftware commented Mar 17, 2018

npm安装后,same并不生效

{
  name: 'register_email',
  display:"你输入的不{{email}}是合法邮箱|邮箱必填|太长|太短",
  rules: 'valid_email|required|max_length(20)|min_length(2)'
},
{
  name: 'register_password1',
  display:"密码必填|太长|太短",
  rules: 'required|max_length(12)|min_length(2)'
},
{
  name: 'register_password2',
  display:"输入的两次密码不一致",
  rules: 'same(register_password1)'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant