summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2018-10-03 18:36:06 +0200
committerGitHub <noreply@github.com>2018-10-03 18:36:06 +0200
commitf4387ed38585848193373273416c67ac419f680c (patch)
tree426735038e0d5806c0e7168aba2bc4e5d062ee28
parentfc60d9f85253093521a4bdce6c591f5ff9757105 (diff)
parentc8e617b07c2df1e85f5504cca11e438921a3aafd (diff)
downloadnextcloud-server-f4387ed38585848193373273416c67ac419f680c.tar.gz
nextcloud-server-f4387ed38585848193373273416c67ac419f680c.zip
Merge pull request #11592 from nextcloud/feature/noid/update-strengthify
Update strengthify to be able to set a nonce
-rw-r--r--bower.json2
-rw-r--r--core/js/setup.js1
-rw-r--r--core/vendor/strengthify/.bower.json10
-rw-r--r--core/vendor/strengthify/jquery.strengthify.js8
-rw-r--r--core/vendor/strengthify/strengthify.css2
-rw-r--r--settings/js/security_password.js3
6 files changed, 16 insertions, 10 deletions
diff --git a/bower.json b/bower.json
index 49b40f390f8..6332d8ddb9b 100644
--- a/bower.json
+++ b/bower.json
@@ -31,7 +31,7 @@
"moment": "^2.15.0",
"select2": "~3.4.8",
"snapjs": "~2.0.0-rc1",
- "strengthify": "^0.5.3",
+ "strengthify": "^0.5.5",
"underscore": "~1.8.0",
"zxcvbn": "*"
}
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/core/vendor/strengthify/.bower.json b/core/vendor/strengthify/.bower.json
index 5441c6d3f0c..ead8cd7e5e8 100644
--- a/core/vendor/strengthify/.bower.json
+++ b/core/vendor/strengthify/.bower.json
@@ -1,6 +1,6 @@
{
"name": "strengthify",
- "version": "0.5.4",
+ "version": "0.5.5",
"homepage": "https://github.com/MorrisJobke/strengthify",
"authors": [
"Eve Ragins <eve.ragins@eve-corp.com",
@@ -9,13 +9,13 @@
"description": "Combine jQuery and zxcvbn to create a password strength meter.",
"main": "jquery.strengthify.js",
"license": "MIT",
- "_release": "0.5.4",
+ "_release": "0.5.5",
"_resolution": {
"type": "version",
- "tag": "0.5.4",
- "commit": "3d9759958558752d0c115774d2b0bc34fac7e31b"
+ "tag": "0.5.5",
+ "commit": "5fa214146e2c7760046fb6c2e01aa9b02759e7d6"
},
"_source": "https://github.com/MorrisJobke/strengthify.git",
- "_target": "^0.5.3",
+ "_target": "^0.5.5",
"_originalSource": "strengthify"
} \ No newline at end of file
diff --git a/core/vendor/strengthify/jquery.strengthify.js b/core/vendor/strengthify/jquery.strengthify.js
index 6a78a7cba59..06bc38e4fda 100644
--- a/core/vendor/strengthify/jquery.strengthify.js
+++ b/core/vendor/strengthify/jquery.strengthify.js
@@ -2,7 +2,7 @@
* Strengthify - show the weakness of a password (uses zxcvbn for this)
* https://github.com/MorrisJobke/strengthify
*
- * Version: 0.5.4
+ * Version: 0.5.5
* Author: Morris Jobke (github.com/MorrisJobke) - original
* Eve Ragins @ Eve Corp (github.com/eve-corp)
*
@@ -52,7 +52,8 @@
drawTitles: false,
drawMessage: false,
drawBars: true,
- $addAfter: null
+ $addAfter: null,
+ nonce: null
};
return this.each(function() {
@@ -209,6 +210,9 @@
var script = document.createElement("script");
script.src = options.zxcvbn;
+ if (options.nonce !== null) {
+ script.nonce = options.nonce;
+ }
document.head.appendChild(script);
$elem.bind('keyup input change', drawSelf);
diff --git a/core/vendor/strengthify/strengthify.css b/core/vendor/strengthify/strengthify.css
index f94e9ccc9b1..390b8f8a239 100644
--- a/core/vendor/strengthify/strengthify.css
+++ b/core/vendor/strengthify/strengthify.css
@@ -1,7 +1,7 @@
/**
* Strengthify - show the weakness of a password (uses zxcvbn for this)
* https://github.com/MorrisJobke/strengthify
- * Version: 0.5.4
+ * Version: 0.5.5
* License: The MIT License (MIT)
* Copyright (c) 2013-2016 Morris Jobke <morris.jobke@gmail.com>
*/
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
+});