Skip to content

Commit

Permalink
Removing auth for lab 4
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkelly committed Aug 12, 2015
1 parent 1c1ed62 commit bf4716d
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions api/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,20 @@ server.views({
path: Path.join(__dirname, 'views')
});

server.register(cookie, function (err) {
server.auth.strategy('session', 'cookie', true, {
password: props.security.cookieSecret,
isSecure: false,
validateFunc: function (request, session, callback) {
cache.get(session.sid, function (err, cached) {
if (err || !cached) {
return callback(err, false);
}
return callback(null, true, cached.user);
});
}
});
});
// server.register(cookie, function (err) {
// server.auth.strategy('session', 'cookie', true, {
// password: props.security.cookieSecret,
// isSecure: false,
// validateFunc: function (request, session, callback) {
// cache.get(session.sid, function (err, cached) {
// if (err || !cached) {
// return callback(err, false);
// }
// return callback(null, true, cached.user);
// });
// }
// });
// });

// register the routes
server.register([
Expand Down

0 comments on commit bf4716d

Please sign in to comment.