X-Git-Url: http://git.squeep.com/?p=squeep-indie-auther;a=blobdiff_plain;f=src%2Ftemplate%2Fauthorization-error-html.js;fp=src%2Ftemplate%2Fauthorization-error-html.js;h=ee2e4f207874775563fa78a6b99404fcf8e24402;hp=0000000000000000000000000000000000000000;hb=b0103b0d496262c438b40bc20304081dbfe41e73;hpb=8ed81748bce7cea7904cac7225b20a60cafdfc16 diff --git a/src/template/authorization-error-html.js b/src/template/authorization-error-html.js new file mode 100644 index 0000000..ee2e4f2 --- /dev/null +++ b/src/template/authorization-error-html.js @@ -0,0 +1,26 @@ +'use strict'; + +const th = require('./template-helper'); + + +/** + * + * @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} + */ +module.exports = (ctx, options) => { + const htmlOptions = { + pageTitle: options.manager.pageTitle, + logoUrl: options.manager.logoUrl, + footerEntries: options.manager.footerEntries, + errorContent: ctx.errorContent || ['Unknown Error'], + }; + return th.htmlPage(0, ctx, htmlOptions, []); +}; \ No newline at end of file