@osimatic/helpers-js 1.3.2 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/user.js +1 -1
package/package.json
CHANGED
package/user.js
CHANGED
|
@@ -51,7 +51,7 @@ class Password {
|
|
|
51
51
|
if (score >= 5) { color = 'success'; text = 'Fort'; }
|
|
52
52
|
|
|
53
53
|
strengthBar.removeClass('bg-danger bg-warning bg-success').addClass('bg-'+color);
|
|
54
|
-
strengthText.removeClass('text-bg-danger text-bg-warning text-bg-success').addClass('text-bg-'+color);
|
|
54
|
+
strengthText.removeClass('text-bg-danger text-bg-warning text-bg-success hide').addClass(password === '' ? 'hide' : 'text-bg-'+color);
|
|
55
55
|
strengthBar.width(width+'%');
|
|
56
56
|
strengthText.text(text);
|
|
57
57
|
}
|