docs: function handlePost(req, res, sails, params){
  
    var func;
  
    if(!_.isUndefined(params.email)){
      func = sendEmail;
    }else if(!_.isUndefined(req.session.resetToken) &&
      req.session.resetToken &&
      !_.isUndefined(params.password)){
      func = issuePasswordReset;
    }
  
    if(!_.isUndefined(func)){
      func(req, res, sails, params);
    }else{
      res.status(404).json(404);
    }
  }