aboutsummaryrefslogtreecommitdiffstats
path: root/apps/sharebymail/src
diff options
context:
space:
mode:
Diffstat (limited to 'apps/sharebymail/src')
-rw-r--r--apps/sharebymail/src/components/AdminSettings.vue7
-rw-r--r--apps/sharebymail/src/main-admin.js7
2 files changed, 7 insertions, 7 deletions
diff --git a/apps/sharebymail/src/components/AdminSettings.vue b/apps/sharebymail/src/components/AdminSettings.vue
index 833efbb6ae1..a3f813195e7 100644
--- a/apps/sharebymail/src/components/AdminSettings.vue
+++ b/apps/sharebymail/src/components/AdminSettings.vue
@@ -21,13 +21,14 @@
</template>
<script>
-import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch.js'
-import NcSettingsSection from '@nextcloud/vue/dist/Components/NcSettingsSection.js'
import { loadState } from '@nextcloud/initial-state'
import { showError } from '@nextcloud/dialogs'
-import axios from '@nextcloud/axios'
import { generateOcsUrl } from '@nextcloud/router'
import { confirmPassword } from '@nextcloud/password-confirmation'
+import axios from '@nextcloud/axios'
+import NcCheckboxRadioSwitch from '@nextcloud/vue/components/NcCheckboxRadioSwitch'
+import NcSettingsSection from '@nextcloud/vue/components/NcSettingsSection'
+
import '@nextcloud/password-confirmation/dist/style.css'
export default {
diff --git a/apps/sharebymail/src/main-admin.js b/apps/sharebymail/src/main-admin.js
index fc0710ea9ad..dd3f6574adf 100644
--- a/apps/sharebymail/src/main-admin.js
+++ b/apps/sharebymail/src/main-admin.js
@@ -3,13 +3,12 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
-import Vue from 'vue'
-import { getRequestToken } from '@nextcloud/auth'
+import { getCSPNonce } from '@nextcloud/auth'
import { translate as t } from '@nextcloud/l10n'
-
+import Vue from 'vue'
import AdminSettings from './components/AdminSettings.vue'
-__webpack_nonce__ = btoa(getRequestToken())
+__webpack_nonce__ = getCSPNonce()
Vue.mixin({
methods: {