summaryrefslogtreecommitdiffstats
path: root/settings/src/main-admin-security.js
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2019-02-26 19:43:59 +0100
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-02-28 17:38:48 +0100
commit4b724751307447cb5153ce4708d6ad9d04a6bff5 (patch)
treeda0e43b8a3e198c3451522ab544a202c3cff4ccc /settings/src/main-admin-security.js
parentfb48abc35ab9d36c6d9eef5fa0ac1fe92bba0f73 (diff)
downloadnextcloud-server-4b724751307447cb5153ce4708d6ad9d04a6bff5.tar.gz
nextcloud-server-4b724751307447cb5153ce4708d6ad9d04a6bff5.zip
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>
Diffstat (limited to 'settings/src/main-admin-security.js')
-rw-r--r--settings/src/main-admin-security.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/settings/src/main-admin-security.js b/settings/src/main-admin-security.js
index fcf0038740d..a728c085b43 100644
--- a/settings/src/main-admin-security.js
+++ b/settings/src/main-admin-security.js
@@ -7,6 +7,10 @@ __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')
)