X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=src%2Ftemplate%2Fauthorization-error-html.js;h=83d952656fac5eef6ab2932fdc8967671783d7cc;hb=f0bf29c75b0fd405ff92fa76f058e61162b87e43;hp=ee2e4f207874775563fa78a6b99404fcf8e24402;hpb=b0103b0d496262c438b40bc20304081dbfe41e73;p=squeep-indie-auther diff --git a/src/template/authorization-error-html.js b/src/template/authorization-error-html.js index ee2e4f2..83d9526 100644 --- a/src/template/authorization-error-html.js +++ b/src/template/authorization-error-html.js @@ -1,26 +1,30 @@ 'use strict'; const th = require('./template-helper'); - +const { sessionNavLinks } = require('@squeep/authentication-module'); /** * - * @param {Object} ctx - * @param {Object} ctx.session - * @param {String=} ctx.session.error - * @param {String[]=} ctx.session.errorDescriptions - * @param {Object} options - * @param {Object} options.manager - * @param {String} options.manager.pageTitle - * @param {String} options.manager.footerEntries - * @returns {String} + * @param {object} ctx context + * @param {object} ctx.session session + * @param {string=} ctx.session.error errors + * @param {string[]=} ctx.session.errorDescriptions errors + * @param {object} options options + * @param {object} options.manager manager options + * @param {string} options.manager.pageTitle page title + * @param {string} options.manager.footerEntries footer entries + * @returns {string} page */ module.exports = (ctx, options) => { + const pagePathLevel = 0; const htmlOptions = { + pageIdentifier: 'authorizationError', pageTitle: options.manager.pageTitle, logoUrl: options.manager.logoUrl, footerEntries: options.manager.footerEntries, errorContent: ctx.errorContent || ['Unknown Error'], }; - return th.htmlPage(0, ctx, htmlOptions, []); + th.navLinks(pagePathLevel, ctx, htmlOptions); + sessionNavLinks(pagePathLevel, ctx, htmlOptions); + return th.htmlPage(pagePathLevel, ctx, htmlOptions, []); }; \ No newline at end of file