Merge pull request #1953 from strongloop/doc/user-hasPassword

Fix description for User.prototype.hasPassword
This commit is contained in:
Janny 2016-01-13 03:14:18 +08:00
commit 27c9e263e0
1 changed files with 3 additions and 1 deletions

View File

@ -301,7 +301,9 @@ module.exports = function(User) {
* Compare the given `password` with the users hashed password.
*
* @param {String} password The plain text password
* @returns {Boolean}
* @callback {Function} callback Callback function
* @param {Error} err Error object
* @param {Boolean} isMatch Returns true if the given `password` matches record
*/
User.prototype.hasPassword = function(plain, fn) {