Add oidc views footer
This commit is contained in:
10
src/oidc.js
10
src/oidc.js
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user