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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user