sails-auth密码验证失败

时间:2016-02-16 09:13:14

标签: node.js validation authentication express sails.js

每当我post/user时:

post image

我收到错误消息,说它无法验证密码:

enter image description here

验证规则:

attributes: {
email: {
    type: 'email',
    required: true,
    unique: true
},
password: {
    type: 'string',
    minLength: 6,
    required: true
}
}

它应该会成功,但即使required失败了,但它显然在那里。 我做错了什么?

1 个答案:

答案 0 :(得分:0)

尝试在表单数据中将Password更改为password。 JSON中的参数区分大小写。

相关问题