fix a few minor issues post merge
parent
d7f862eea5
commit
d2fae63310
2
app.js
2
app.js
|
@ -108,7 +108,7 @@ app.use(session({
|
|||
secret: secrets.sessionSecret,
|
||||
store: new MongoStore({
|
||||
url: secrets.db,
|
||||
'auto_reconnect': true
|
||||
'autoReconnect': true
|
||||
})
|
||||
}));
|
||||
app.use(passport.initialize());
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
exports.index = function(req, res) {
|
||||
if (req.user) {
|
||||
res.redirect('/learn-to-code')
|
||||
res.redirect('/challenges/')
|
||||
} else {
|
||||
res.render('home', {
|
||||
title: 'Learn to Code and Become a Software Engineer'
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
a(href='/' + user.profile.username) [ #{user.progressTimestamps.length} ]
|
||||
|
||||
else
|
||||
a(href='/account') [ #{user.points} ]
|
||||
a(href='/account') [ #{user.progressTimestamps.length} ]
|
||||
.hidden-xs
|
||||
if user.profile.picture
|
||||
if (user.profile.username)
|
||||
|
|
Loading…
Reference in New Issue