X-Git-Url: https://git.squeep.com/?p=squeep-authentication-module;a=blobdiff_plain;f=lib%2Ftemplate%2Fsettings-html.js;fp=lib%2Ftemplate%2Fsettings-html.js;h=42bfdcda4fedae3e6c12a25177cb87943f41bfbc;hp=c5bb6c082909bd92274ca3242a76c33b3764e574;hb=2c3ddf0a6f40b9d0a4e54fa12b84b8af33eaaadc;hpb=54ca04e330d14a12344ddc2b161c1d9b55bfd7d7 diff --git a/lib/template/settings-html.js b/lib/template/settings-html.js index c5bb6c0..42bfdcd 100644 --- a/lib/template/settings-html.js +++ b/lib/template/settings-html.js @@ -3,6 +3,7 @@ /* eslint-disable no-unused-vars */ const { TemplateHelper: th } = require('@squeep/html-template-helper'); +const { sessionNavLinks } = require('./helpers'); const { TOTP } = require('@squeep/totp'); function updatePasswordSection(ctx, htmlOptions) { @@ -93,16 +94,20 @@ function OTPSection(ctx, htmlOptions) { } -module.exports = (ctx, options) => { +module.exports = (ctx, options, appCb = () => {}) => { + const pagePathLevel = 1; const htmlOptions = { + pageIdentifier: 'account', pageTitle: options.manager.pageTitle, logoUrl: options.manager.logoUrl, footerEntries: options.manager.footerEntries, }; + appCb(pagePathLevel, ctx, htmlOptions); + sessionNavLinks(pagePathLevel, ctx, htmlOptions); const mainContent = [ OTPSection(ctx, htmlOptions), updatePasswordSection(ctx, htmlOptions), ]; - return th.htmlPage(1, ctx, htmlOptions, mainContent); + return th.htmlPage(pagePathLevel, ctx, htmlOptions, mainContent); };