Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
signup: Don't run password_strength form validator in ldap signup mode.
Mateusz Manderade37ab28a87a
diff --git a/web/src/portico/signup.ts b/web/src/portico/signup.tsindex f7eb7ddf950..6e4c15a2d09 100644--- a/web/src/portico/signup.ts+++ b/web/src/portico/signup.ts@@ -60,7 +60,16 @@ $(() => {$("#registration, #password_reset, #create_realm").validate({rules: {- password: "password_strength",+ password: {+ password_strength: {+ depends(element: HTMLElement): boolean {+ // In the registration flow where the user is required to+ // enter their LDAP password, we don't check password strength,+ // and the validator method is not even set up.+ return element.id !== "ldap-password";+ },+ },+ },new_password1: "password_strength",},errorElement: "p",