1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-02-21 13:57:56 +03:00

B #6222: fix currency change is not working (#2631)

(cherry picked from commit 61ce93466bbfa41079d45df7e40871fd0890e8a2)
This commit is contained in:
Jorge Miguel Lobo Escalona 2023-06-06 20:15:26 +02:00 committed by Tino Vázquez
parent f7779746ad
commit d3b5febb37
No known key found for this signature in database
GPG Key ID: 14201E424D02047E

View File

@ -44,12 +44,6 @@ const { APP_URL, STATIC_FILES_URL } = require('client/constants')
const APP_NAMES = Object.keys(defaultApps)
const APP_CONFIG = {
[defaultApps.provision.name]: getProvisionConfig() || {},
[defaultApps.sunstone.name]:
getSunstoneConfig({ includeProtectedConfig: false }) || {},
}
const ensuredScriptValue = (value) =>
JSON.stringify(value).replace(/</g, '\\u003c')
@ -58,6 +52,12 @@ const router = Router()
router.get('*', async (req, res) => {
const remoteJWT = {}
const APP_CONFIG = {
[defaultApps.provision.name]: getProvisionConfig() || {},
[defaultApps.sunstone.name]:
getSunstoneConfig({ includeProtectedConfig: false }) || {},
}
const appConfig = getFireedgeConfig()
if (appConfig?.auth === 'remote') {
remoteJWT.remote = true