Make minimal ldap configs available for html templates
This commit is contained in:
parent
eed8616dbb
commit
b9f4b286c5
1 changed files with 4 additions and 0 deletions
4
app.js
4
app.js
|
@ -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',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue