remove settings.dashboardOrigin

This commit is contained in:
Girish Ramakrishnan
2023-08-04 22:10:14 +05:30
parent 4cdf37b060
commit 67ee82abb9
7 changed files with 16 additions and 19 deletions
+2 -2
View File
@@ -87,7 +87,7 @@ async function clientsGet(id) {
application_type: 'web',
response_types: ['code', 'code token'],
grant_types: ['authorization_code', 'implicit'],
loginRedirectUri: settings.dashboardOrigin() + '/authcallback.html'
loginRedirectUri: `https://${settings.dashboardFqdn()}/authcallback.html`
};
} else if (id === DEV_CLIENT_ID) {
return {
@@ -667,7 +667,7 @@ async function findAccount(ctx, id) {
async function renderError(ctx, out, error) {
const data = {
dashboardOrigin: settings.dashboardOrigin(),
dashboardOrigin: `https://${settings.dashboardFqdn()}`,
errorMessage: error.error_description || error.error_detail || 'Unknown error'
};