Parcourir la source

Set nonce for loading the zxcvbn

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Morris Jobke il y a 6 ans
Parent
commit
c8e617b07c
2 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 1 0
      core/js/setup.js
  2. 2 1
      settings/js/security_password.js

+ 1 - 0
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

+ 2 - 1
settings/js/security_password.js

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