Skip to content

Commit

Permalink
Check out OS module
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeGathercole committed Jun 2, 2015
1 parent f0686f0 commit 957a9bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/config/passport.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ module.exports = function(passport, config) {
});
});



passport.serializeUser(function(user, done) {
done(null, user);
});
Expand Down
3 changes: 3 additions & 0 deletions app/routes/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ module.exports = function(app, passport) {
};

app.get('/', function(req, res) {
var os = require("os");

console.log(os.hostname());
if (!req.isAuthenticated()) {
res.redirect('/login');

Expand Down

0 comments on commit 957a9bb

Please sign in to comment.