Work on index page
This commit is contained in:
parent
24fcce3f87
commit
7307c9c82e
3 changed files with 71 additions and 1 deletions
|
|
@ -101,9 +101,11 @@ function handleIndex(req, res) {
|
|||
if (req.cookies.auth) {
|
||||
loginName = req.cookies.auth.split(':')[0];
|
||||
}
|
||||
|
||||
sendJade(res, 'index', {
|
||||
loggedIn: loginName !== false,
|
||||
loginName: loginName
|
||||
loginName: loginName,
|
||||
channels: Server.getServer().packChannelList(true)
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue