aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/src/main-apps-users-management.ts
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-08-13 17:54:47 +0200
committerFerdinand Thiessen <opensource@fthiessen.de>2024-08-13 17:54:47 +0200
commitea021df9fa5e91006a4dabdb330f780c7e1e12cf (patch)
tree634a4c55db904dde477b46e0b5e5b5034631f538 /apps/settings/src/main-apps-users-management.ts
parent3e409fd34208afb69b270076e1f503c10101650a (diff)
downloadnextcloud-server-ea021df9fa5e91006a4dabdb330f780c7e1e12cf.tar.gz
nextcloud-server-ea021df9fa5e91006a4dabdb330f780c7e1e12cf.zip
chore(deps): Update `@nextcloud/auth` to v2.4.0 and use `getCSPNonce` where possible
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
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