Set nonce for loading the zxcvbn

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Morris Jobke 2018-10-03 16:07:21 +02:00
parent 24c74b3db9
commit c8e617b07c
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

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