diff --git a/media/css/seahub.css b/media/css/seahub.css
index 5693c4d342..4d7c29b1f6 100644
--- a/media/css/seahub.css
+++ b/media/css/seahub.css
@@ -472,6 +472,13 @@ select {
border-radius: 2px;
}
+.errorlist {
+ color: red;
+ padding-left: 0;
+ margin-bottom: 0;
+ font-size: 12px;
+}
+
.sf-btn-link {
display: inline-block;
color: var(--bs-body-color);
diff --git a/seahub/organizations/templates/organizations/org_register.html b/seahub/organizations/templates/organizations/org_register.html
index 306bec63b7..b63f033c6e 100644
--- a/seahub/organizations/templates/organizations/org_register.html
+++ b/seahub/organizations/templates/organizations/org_register.html
@@ -79,7 +79,9 @@
}, 5000);
{% else %}
+ {% if not request.is_mobile and not request.is_tablet %}
{% include "snippets/password_strength_js.html" %}
+ {% endif %}
$('#signup-form').on('submit', function(){
var email = $('input[name="email"]').val().trim(),
pwd1 = $('input[name="password1"]').val().trim(),
@@ -107,7 +109,9 @@
}
});
$(function () {
- setupPasswordField("password1", passwd_tip, template);
+ if (typeof setupPasswordField !== 'undefined') {
+ setupPasswordField("id_password1", passwd_tip, template);
+ }
});
{% endif %}
diff --git a/seahub/templates/registration/password_change_form.html b/seahub/templates/registration/password_change_form.html
index 5ccaf6b8da..9a26fa5564 100644
--- a/seahub/templates/registration/password_change_form.html
+++ b/seahub/templates/registration/password_change_form.html
@@ -34,10 +34,14 @@
$('[type="password"]').addClass('input');
$('.new-narrow-panel').removeClass('vh');
+{% if not request.is_mobile and not request.is_tablet %}
{% include "snippets/password_strength_js.html" %}
+{% endif %}
$(function () {
- setupPasswordField("id_new_password1", passwd_tip, template);
+ if (typeof setupPasswordField !== 'undefined') {
+ setupPasswordField("id_password1", passwd_tip, template);
+ }
});
$('form').on('submit', function(){
diff --git a/seahub/templates/registration/password_reset_confirm.html b/seahub/templates/registration/password_reset_confirm.html
index 25ba82c10b..4e1f59fb33 100644
--- a/seahub/templates/registration/password_reset_confirm.html
+++ b/seahub/templates/registration/password_reset_confirm.html
@@ -43,9 +43,13 @@