Finish validation touchup

This commit is contained in:
Xaekai 2017-06-04 23:44:46 -07:00
parent d42de93d74
commit 699aa2abe1
4 changed files with 37 additions and 37 deletions

View file

@ -202,7 +202,6 @@ function handleAccountChannelPage(req, res) {
db.channels.listUserChannels(req.user.name, function (err, channels) {
sendPug(res, "account-channels", {
domain: req.host,
channels: channels
});
});

View file

@ -13,6 +13,7 @@ function merge(locals, res) {
siteTitle: Config.get("html-template.title"),
siteDescription: Config.get("html-template.description"),
siteAuthor: "Calvin 'calzoneman' 'cyzon' Montgomery",
domain: res.req.host,
loginDomain: Config.get("https.enabled") ? Config.get("https.full-address")
: Config.get("http.full-address"),
csrfToken: typeof res.req.csrfToken === 'function' ? res.req.csrfToken() : '',