Set nonce for loading the zxcvbn

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
pull/11592/head
Morris Jobke 7 years ago
parent 24c74b3db9
commit c8e617b07c
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
  1. 1
      core/js/setup.js
  2. 3
      settings/js/security_password.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

@ -81,5 +81,6 @@ $(document).ready(function () {
],
drawTitles: true,
$addAfter: $('input[name="newpassword-clone"]'),
nonce: btoa(OC.requestToken),
});
});
});

Loading…
Cancel
Save