/**
 * Bootstrap
 * (sails.config.bootstrap)
 *
 * An asynchronous bootstrap function that runs before your Sails app gets lifted.
 * This gives you an opportunity to set up your data model, run jobs, or perform some special logic.
 *
 * For more information on bootstrapping your app, check out:
 * http://sailsjs.org/#!/documentation/reference/sails.config/sails.config.bootstrap.html
 */

module.exports.bootstrap = function(cb) {

  // It's very important to trigger this callback method when you are finished
  // with the bootstrap!  (otherwise your server will never lift, since it's waiting on the bootstrap)
  cb();
};

@@ -383,16 +383,52 @@
 html%0A */
+%0Avar passport = require('passport');
 %0A%0Amodule
@@ -464,16 +464,274 @@
 (cb) %7B%0A%0A
+%09passport.serializeUser(function (user, next) %7B%0A%09%09next(null, user.id);%0A%09%7D);%0A%0A%09passport.deserializeUser(function (id, next) %7B%0A%09%09return sails.models.user.findOne(id).then(function (user) %7B%0A%09%09%09next(null, user %7C%7C null);%0A%09%09%09return user;%0A%09%09%7D)%5B'catch'%5D(next);%0A%09%7D);%0A
   // It'

Add passport middlewares for view routes