diff options
Diffstat (limited to 'core/vendor/strengthify/jquery.strengthify.js')
-rw-r--r-- | core/vendor/strengthify/jquery.strengthify.js | 8 |
1 files changed, 6 insertions, 2 deletions
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); |