From c8e617b07c2df1e85f5504cca11e438921a3aafd Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Wed, 3 Oct 2018 16:07:21 +0200 Subject: [PATCH] Set nonce for loading the zxcvbn Signed-off-by: Morris Jobke --- core/js/setup.js | 1 + settings/js/security_password.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/js/setup.js b/core/js/setup.js index b3b2049c44..5b0bd679db 100644 --- a/core/js/setup.js +++ b/core/js/setup.js @@ -123,6 +123,7 @@ $(document).ready(function() { t('core', 'Strong password') ], drawTitles: true, + nonce: btoa(OC.requestToken), }); // centers the database chooser if it is too wide diff --git a/settings/js/security_password.js b/settings/js/security_password.js index f7cb657c25..c23e60cfea 100644 --- a/settings/js/security_password.js +++ b/settings/js/security_password.js @@ -81,5 +81,6 @@ $(document).ready(function () { ], drawTitles: true, $addAfter: $('input[name="newpassword-clone"]'), + nonce: btoa(OC.requestToken), }); -}); \ No newline at end of file +});