From 865789017d1d3b56a24d20669afc9a8e43e5a109 Mon Sep 17 00:00:00 2001 From: Jue Hou Date: Mon, 11 Jan 2016 14:28:10 -0500 Subject: [PATCH] Fix description for User.prototype.hasPassword --- common/models/user.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/models/user.js b/common/models/user.js index b91b3ca1..7b875dfe 100644 --- a/common/models/user.js +++ b/common/models/user.js @@ -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) {