validatePassword = function validatePassword(passport, next) {
      var password = request.param('password');

      passport.validatePassword(password, function callback(error, matched) {
        if (error) {
          next({message: 'Invalid password'});
        } else {
          next(null, matched);
        }
      });
    }
Job to validate given password against user passport object.

@param {sails.model.passport}  passport  Passport object
@param {Function}              next      Callback function