diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2018-10-15 12:01:42 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2018-10-16 11:49:07 +0200 |
commit | f8579a87f5f6405b0eb2b211babcdb7a55fb4fea (patch) | |
tree | 32770a1feaebbdea4c012bd5f3791ab74cd820c1 /settings/src | |
parent | ad66b0f9ab010ee00d249d6f8512d30332e8a0af (diff) | |
download | nextcloud-server-f8579a87f5f6405b0eb2b211babcdb7a55fb4fea.tar.gz nextcloud-server-f8579a87f5f6405b0eb2b211babcdb7a55fb4fea.zip |
Fix unsafe-eval used in 2FA admin settings
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'settings/src')
-rw-r--r-- | settings/src/main-admin-security.js | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/settings/src/main-admin-security.js b/settings/src/main-admin-security.js index 711325d57b0..f2acc9474a5 100644 --- a/settings/src/main-admin-security.js +++ b/settings/src/main-admin-security.js @@ -1,13 +1,10 @@ import Vue from 'vue' -import AdminTwoFactor from './components/AdminTwoFactor' +import AdminTwoFactor from './components/AdminTwoFactor.vue' + +__webpack_nonce__ = btoa(OC.requestToken) Vue.prototype.t = t; -new Vue({ - el: '#two-factor-auth-settings', - template: '<AdminTwoFactor/>', - components: { - AdminTwoFactor - } -}) +const View = Vue.extend(AdminTwoFactor) +new View().$mount('#two-factor-auth-settings') |