diff --git a/apps/public/static/js/main.js b/apps/public/static/js/main.js index d2e468b..f72e170 100644 --- a/apps/public/static/js/main.js +++ b/apps/public/static/js/main.js @@ -124,7 +124,12 @@ jQuery(document).ready(function() { let result = zxcvbn(val); password_strength.show(); strength_text.html(paswordStrengthText[result.score]); - strength_suggest.html( (result.feedback.warning !== "" ? (result.feedback.warning + "
") : "") + result.feedback.suggestions); + let feedback = []; + if (result.feedback.warning !== "") {feedback.push(result.feedback.warning);} + feedback = feedback.concat(result.feedback.suggestions); + if (feedback.length > 0) { + strength_suggest.html(''); + } } catch (e) { } } else { diff --git a/apps/views/auth/register.php b/apps/views/auth/register.php index 07e58ce..8a5ad28 100644 --- a/apps/views/auth/register.php +++ b/apps/views/auth/register.php @@ -47,7 +47,14 @@ -
Max Length 12 with those character: A-Za-z0-9_
+
+ +
@@ -63,10 +70,12 @@ +
- +
@@ -76,7 +85,9 @@
- +