Bump strengthify

Fixes #11033
For https://github.com/orgs/nextcloud/projects/18

Move to a stricter CSP safe strengthify

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2018-09-28 12:53:45 +02:00
parent e2047009d1
commit 6ddef7bceb
No known key found for this signature in database
GPG Key ID: F941078878347C0C
3 changed files with 15 additions and 13 deletions

View File

@ -1,6 +1,6 @@
{
"name": "strengthify",
"version": "0.5.3",
"version": "0.5.4",
"homepage": "https://github.com/MorrisJobke/strengthify",
"authors": [
"Eve Ragins <eve.ragins@eve-corp.com",
@ -9,11 +9,11 @@
"description": "Combine jQuery and zxcvbn to create a password strength meter.",
"main": "jquery.strengthify.js",
"license": "MIT",
"_release": "0.5.3",
"_release": "0.5.4",
"_resolution": {
"type": "version",
"tag": "0.5.3",
"commit": "a97e861762ccb17ce5f51d5c608b5d9e42732ae3"
"tag": "0.5.4",
"commit": "3d9759958558752d0c115774d2b0bc34fac7e31b"
},
"_source": "https://github.com/MorrisJobke/strengthify.git",
"_target": "^0.5.3",

View File

@ -2,7 +2,7 @@
* Strengthify - show the weakness of a password (uses zxcvbn for this)
* https://github.com/MorrisJobke/strengthify
*
* Version: 0.5.2
* Version: 0.5.4
* Author: Morris Jobke (github.com/MorrisJobke) - original
* Eve Ragins @ Eve Corp (github.com/eve-corp)
*
@ -90,6 +90,10 @@
'"progid:DXImageTransform.Microsoft.Alpha(Opacity=' + opacity * 100 + ')"'
);
if (options.onResult) {
options.onResult(result);
}
// style strengthify bar
// possible scores: 0-4
switch (result.score) {
@ -203,13 +207,11 @@
$elem.parent().on('scroll', drawSelf);
$.ajax({
cache: true,
url: options.zxcvbn
}).done(function(content) {
eval(content);
$elem.bind('keyup input change', drawSelf);
});
var script = document.createElement("script");
script.src = options.zxcvbn;
document.head.appendChild(script);
$elem.bind('keyup input change', drawSelf);
};
init.call(this);

View File

@ -1,7 +1,7 @@
/**
* Strengthify - show the weakness of a password (uses zxcvbn for this)
* https://github.com/MorrisJobke/strengthify
* Version: 0.5.2
* Version: 0.5.4
* License: The MIT License (MIT)
* Copyright (c) 2013-2016 Morris Jobke <morris.jobke@gmail.com>
*/