Make minimal ldap configs available for html templates

This commit is contained in:
Johannes Zellner 2016-08-11 14:44:09 +02:00
parent eed8616dbb
commit b9f4b286c5

4
app.js
View file

@ -135,6 +135,10 @@ passport.setup(app);
app.use((req, res, next) => { app.use((req, res, next) => {
res.locals.flash = req.flash.bind(req); res.locals.flash = req.flash.bind(req);
res.locals.user = req.user; res.locals.user = req.user;
res.locals.ldap = {
enabled: config.ldap.enabled,
passwordresetlink: config.ldap.passwordresetlink
};
let menu = [{ let menu = [{
title: 'Home', title: 'Home',