aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/src/main-apps-users-management.ts
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings/src/main-apps-users-management.ts')
-rw-r--r--apps/settings/src/main-apps-users-management.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/settings/src/main-apps-users-management.ts b/apps/settings/src/main-apps-users-management.ts
index 650290cf443..c923406ce7f 100644
--- a/apps/settings/src/main-apps-users-management.ts
+++ b/apps/settings/src/main-apps-users-management.ts
@@ -11,7 +11,7 @@ import { translate as t, translatePlural as n } from '@nextcloud/l10n'
import SettingsApp from './views/SettingsApp.vue'
import router from './router/index.ts'
import { useStore } from './store/index.js'
-import { getRequestToken } from '@nextcloud/auth'
+import { getCSPNonce } from '@nextcloud/auth'
import { PiniaVuePlugin, createPinia } from 'pinia'
Vue.use(VTooltip, { defaultHtml: false })
@@ -21,7 +21,7 @@ sync(store, router)
// CSP config for webpack dynamic chunk loading
// eslint-disable-next-line camelcase
-__webpack_nonce__ = btoa(getRequestToken() ?? '')
+__webpack_nonce__ = getCSPNonce()
// bind to window
Vue.prototype.t = t