oidc: fix crash when rendering error
This commit is contained in:
+4
-2
@@ -489,7 +489,10 @@ function renderInteractionPage(provider) {
|
||||
}
|
||||
} catch (error) {
|
||||
debug('route interaction get error', error);
|
||||
return res.render('error', { errorMessage: error.error_description || 'Internal error' });
|
||||
return res.render('error', {
|
||||
errorMessage: error.error_description || 'Internal error',
|
||||
footer: marked.parse(await branding.renderFooter())
|
||||
});
|
||||
}
|
||||
};
|
||||
}
|
||||
@@ -667,7 +670,6 @@ 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',
|
||||
footer: marked.parse(await branding.renderFooter())
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user