Add oidc views footer

This commit is contained in:
Johannes Zellner
2023-08-11 13:36:46 +02:00
parent 34f2386a9d
commit cacf0d34f5
6 changed files with 32 additions and 3 deletions

View File

@@ -25,6 +25,7 @@ const assert = require('assert'),
express = require('express'),
eventlog = require('./eventlog.js'),
fs = require('fs'),
marked = require('marked'),
middleware = require('./middleware'),
path = require('path'),
paths = require('./paths.js'),
@@ -445,7 +446,8 @@ function renderInteractionPage(provider) {
const options = {
submitUrl: `${ROUTE_PREFIX}/interaction/${uid}/login`,
iconUrl: '/api/v1/cloudron/avatar',
name: client?.name || await branding.getCloudronName()
name: client?.name || await branding.getCloudronName(),
footer: marked.parse(await branding.renderFooter())
};
if (app) {
@@ -463,7 +465,8 @@ function renderInteractionPage(provider) {
hasAccess: false,
submitUrl: '',
iconUrl: '/api/v1/cloudron/avatar',
name: client?.name || ''
name: client?.name || '',
footer: marked.parse(await branding.renderFooter())
};
// check if user has access to the app if client refers to an app
@@ -665,7 +668,8 @@ async function findAccount(ctx, id) {
async function renderError(ctx, out, error) {
const data = {
dashboardOrigin: `https://${settings.dashboardFqdn()}`,
errorMessage: error.error_description || error.error_detail || 'Unknown error'
errorMessage: error.error_description || error.error_detail || 'Unknown error',
footer: marked.parse(await branding.renderFooter())
};
debug('renderError: %o', error);