forked from GitHub/dbot
fix web routes
This commit is contained in:
parent
a3d18884aa
commit
e757ee34df
@ -176,9 +176,10 @@ var webInterface = function(dbot) {
|
|||||||
return next();
|
return next();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
console.log(req);
|
||||||
res.render('login', {
|
res.render('login', {
|
||||||
'message': 'You need to log in to access this module.',
|
'message': 'You need to log in to access this module.',
|
||||||
'redirect': module
|
'redirect': req.originalUrl
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user