1
0
mirror of https://github.com/stolksdorf/homebrewery.git synced 2025-12-20 13:31:30 +00:00

Backend of local login working

This commit is contained in:
Scott Tolksdorf
2017-01-06 19:43:16 -05:00
parent a26c4e2092
commit d77fa0a3dc
6 changed files with 30 additions and 13 deletions

View File

@@ -1,4 +1,5 @@
const _ = require('lodash');
const config = require('nconf');
const utils = require('./utils.js');
const BrewData = require('./brew.data.js');
const router = require('express').Router();
@@ -18,7 +19,7 @@ const renderPage = (req, res, next) => {
return vitreumRender('homebrew', templateFn, {
url : req.originalUrl,
version : require('../package.json').version,
//TODO: add in login path?
loginPath : config.get('login_path'),
user : req.account && req.account.username,
brews : req.brews,