diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-10-03 16:07:21 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-10-03 17:05:01 +0200 |
commit | c8e617b07c2df1e85f5504cca11e438921a3aafd (patch) | |
tree | e6574d10de10da167361313c6308c0f0b1b9843d | |
parent | 24c74b3db91e29e301041ab378ad0fc1f87076af (diff) | |
download | nextcloud-server-c8e617b07c2df1e85f5504cca11e438921a3aafd.tar.gz nextcloud-server-c8e617b07c2df1e85f5504cca11e438921a3aafd.zip |
Set nonce for loading the zxcvbn
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
-rw-r--r-- | core/js/setup.js | 1 | ||||
-rw-r--r-- | settings/js/security_password.js | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/core/js/setup.js b/core/js/setup.js index b3b2049c447..5b0bd679dbe 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 f7cb657c258..c23e60cfea6 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 +}); |