nextcloud/settings/src/main-admin-security.js
Christoph Wurst 4b72475130
Move personal auth token settings to Vue
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>

Always crate OC.Settings, even if not used

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2019-02-28 17:38:48 +01:00

21 lines
502 B
JavaScript

import Vue from 'vue'
import AdminTwoFactor from './components/AdminTwoFactor.vue'
import store from './store/admin-security'
__webpack_nonce__ = btoa(OC.requestToken)
Vue.prototype.t = t;
// Not used here but required for legacy templates
window.OC = window.OC || {};
window.OC.Settings = window.OC.Settings || {};
store.replaceState(
OCP.InitialState.loadState('settings', 'mandatory2FAState')
)
const View = Vue.extend(AdminTwoFactor)
new View({
store
}).$mount('#two-factor-auth-settings')