You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main-admin-security.js 537B

12345678910111213141516171819202122
  1. import Vue from 'vue'
  2. import AdminTwoFactor from './components/AdminTwoFactor.vue'
  3. import store from './store/admin-security'
  4. // eslint-disable-next-line camelcase
  5. __webpack_nonce__ = btoa(OC.requestToken)
  6. Vue.prototype.t = t
  7. // Not used here but required for legacy templates
  8. window.OC = window.OC || {}
  9. window.OC.Settings = window.OC.Settings || {}
  10. store.replaceState(
  11. OCP.InitialState.loadState('settings', 'mandatory2FAState')
  12. )
  13. const View = Vue.extend(AdminTwoFactor)
  14. new View({
  15. store
  16. }).$mount('#two-factor-auth-settings')