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