{"action":"opened","issue":{"url":"https://api.github.com/repos/saintedlama/passport-local-mongoose/issues/112","labels_url":"https://api.github.com/repos/saintedlama/passport-local-mongoose/issues/112/labels{/name}","comments_url":"https://api.github.com/repos/saintedlama/passport-local-mongoose/issues/112/comments","events_url":"https://api.github.com/repos/saintedlama/passport-local-mongoose/issues/112/events","html_url":"https://github.com/saintedlama/passport-local-mongoose/issues/112","id":123401677,"number":112,"title":"User validation failed","user":{"login":"bsass1","id":273826,"avatar_url":"https://avatars.githubusercontent.com/u/273826?v=3","gravatar_id":"","url":"https://api.github.com/users/bsass1","html_url":"https://github.com/bsass1","followers_url":"https://api.github.com/users/bsass1/followers","following_url":"https://api.github.com/users/bsass1/following{/other_user}","gists_url":"https://api.github.com/users/bsass1/gists{/gist_id}","starred_url":"https://api.github.com/users/bsass1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsass1/subscriptions","organizations_url":"https://api.github.com/users/bsass1/orgs","repos_url":"https://api.github.com/users/bsass1/repos","events_url":"https://api.github.com/users/bsass1/events{/privacy}","received_events_url":"https://api.github.com/users/bsass1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-22T02:51:02Z","updated_at":"2015-12-22T02:51:02Z","closed_at":null,"body":"I get Mongoose validation error for path password:  \r\nmessage: 'Validator failed for path `password` with value `0`',\r\n        name: 'ValidatorError',\r\n        kind: 'user defined',\r\n        path: 'password',\r\n        value: 0 } } }\r\n\r\nI know that passport-local-mongoose creates hashing and salt paths but it doesn't fill in the passoword path. I made it not required and remove the password path altogether still get the mongoose validation error \r\n\r\nvar userSchema = new mongoose.Schema({\r\n  email: {\r\n    type: String,\r\n    required: true,\r\n    unique: true\r\n  },\r\n  password: String,\r\n});\r\n\r\nIs there something I need to override?"}}