2018-10-08 15:03:22 +03:00
|
|
|
import Vue from 'vue'
|
|
|
|
|
2018-10-15 13:01:42 +03:00
|
|
|
import AdminTwoFactor from './components/AdminTwoFactor.vue'
|
2019-01-10 18:04:13 +03:00
|
|
|
import store from './store/admin-security'
|
2018-10-15 13:01:42 +03:00
|
|
|
|
|
|
|
__webpack_nonce__ = btoa(OC.requestToken)
|
2018-10-08 15:03:22 +03:00
|
|
|
|
|
|
|
Vue.prototype.t = t;
|
|
|
|
|
2019-01-10 18:04:13 +03:00
|
|
|
store.replaceState(
|
|
|
|
OCP.InitialState.loadState('settings', 'mandatory2FAState')
|
|
|
|
)
|
|
|
|
|
2018-10-15 13:01:42 +03:00
|
|
|
const View = Vue.extend(AdminTwoFactor)
|
2019-01-10 18:04:13 +03:00
|
|
|
new View({
|
|
|
|
store
|
|
|
|
}).$mount('#two-factor-auth-settings')
|