]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 471620: USER_PASSWORD_MAX_LENGTH is no longer needed - Patch by Frédéric Buclin...
authorlpsolit%gmail.com <>
Sun, 9 Aug 2009 19:51:43 +0000 (19:51 +0000)
committerlpsolit%gmail.com <>
Sun, 9 Aug 2009 19:51:43 +0000 (19:51 +0000)
Bugzilla/Constants.pm
Bugzilla/User.pm
Bugzilla/WebService/Constants.pm
template/en/default/global/user-error.html.tmpl

index 294d03491631e20ea6b56b873ec7dd9bc3ae030c..ef3853788cc03cad3a70922fad92e91261310125 100644 (file)
@@ -57,7 +57,6 @@ use File::Basename;
     AUTH_NO_SUCH_USER
 
     USER_PASSWORD_MIN_LENGTH
-    USER_PASSWORD_MAX_LENGTH
 
     LOGIN_OPTIONAL
     LOGIN_NORMAL
@@ -226,9 +225,8 @@ use constant AUTH_LOGINFAILED => 3;
 use constant AUTH_DISABLED => 4;
 use constant AUTH_NO_SUCH_USER  => 5;
 
-# The minimum and maximum lengths a password must have.
+# The minimum length a password must have.
 use constant USER_PASSWORD_MIN_LENGTH => 3;
-use constant USER_PASSWORD_MAX_LENGTH => 16;
 
 use constant LOGIN_OPTIONAL => 0;
 use constant LOGIN_NORMAL => 1;
index 0eb47b8b3ebb47e0efc8aba6affb67134992730f..ff486684b09663485649161dcc19d8f72ca520f3 100644 (file)
@@ -1706,8 +1706,6 @@ sub validate_password {
 
     if (length($password) < USER_PASSWORD_MIN_LENGTH) {
         ThrowUserError('password_too_short');
-    } elsif (length($password) > USER_PASSWORD_MAX_LENGTH) {
-        ThrowUserError('password_too_long');
     } elsif ((defined $matchpassword) && ($password ne $matchpassword)) {
         ThrowUserError('passwords_dont_match');
     }
index 260ae9478b6bb095d49039e7b9ccd19a0b4ba663..8e7465a5a0831e8f9da05aa9b896320180395061 100644 (file)
@@ -103,7 +103,6 @@ use constant WS_ERROR_CODE => {
     account_creation_disabled   => 501,
     account_creation_restricted => 501,
     password_too_short    => 502,
-    password_too_long     => 503,
     invalid_username      => 504,
     # This is from strict_isolation, but it also basically means 
     # "invalid user."
index a30f297066ea6cfef149e521ae68366633ce4cd4..58cf4e01d36db2a5179538fb10456e8dd2f2a260 100644 (file)
     [% title = "Passwords Don't Match" %]
     The two passwords you entered did not match.
 
-  [% ELSIF error == "password_too_long" %]
-    [% title = "Password Too Long" %]
-    The password must be no more than
-    [%+ constants.USER_PASSWORD_MAX_LENGTH FILTER html %] characters long.
-
   [% ELSIF error == "password_too_short" %]
     [% title = "Password Too Short" %]
     The password must be at least