code: function(req, res) {
  
        req.session.authenticated = false;
  
        var defaultString = 'You have successfully logged out.';
  
        // now respond or redirect
        var postResponse = this._resolvePostAction(waterlock.config.postActions.logout.success,
          defaultString);
  
        if (typeof postResponse === 'string' && this._isURI(postResponse)) {
          res.redirect(postResponse);
        } else {
          res.ok(postResponse);
        }
      }
docs: the logout 'success' event
  
  @param  {Object} req express request object
  @param  {Object} res express response object
  @api public