title: 'Incorrect arguments' thrown by bcrypt-nodejs - Passport
body: <p>I have a log in system set up for my Node.js app. Recently I made a change to my user model (CoffeeScript):</p>
  
  <pre><code>password: String
  </code></pre>
  
  <p>to</p>
  
  <pre><code>password:
          type: String
          select: false
  </code></pre>
  
  <p>My function to compare password hashes with bcrypt is as follows:</p>
  
  <pre><code>userSchema.methods.validPassword = (password) -&gt;
          bcrypt.compareSync password, @local.password
  </code></pre>
  
  <p>Now whenever I run the above function this error is thrown </p>
  
  <pre><code>Incorrect arguments
  </code></pre>
  
  <p>Anyone have any idea why this would be thrown after I add "select: false" to my user model?</p>