Length Rules

Overview

Password length rules control how short or long user passwords can be. You can enforce a minimum length, a maximum length, or both.

Minimum Password Length

When Require a minimum length is on, passwords must contain at least the specified number of characters.

Configuring Minimum Length

  1. Navigate to Settings → Login Security.
  2. Open the Policy tab. (PRO) Open the Policies tab and click the policy’s name.
  3. Turn on the Require a minimum length card.
  4. Set At least, in characters.
  5. Click Save.

The valid range is 1 to 50 characters. The default value is 10.

Maximum Password Length

When Limit the maximum length is on, passwords must not exceed the specified number of characters. Use it when passwords need to stay within a length your site, or a system you integrate with, accepts.

Configuring Maximum Length

  1. Navigate to Settings → Login Security.
  2. Open the Policy tab. (PRO) Open the Policies tab and click the policy’s name.
  3. Turn on the Limit the maximum length card.
  4. Set At most, in characters.
  5. Click Save.

The valid range is 64 to 512 characters. The default value is 256.

How Length is Enforced

When a user sets or changes their password, the plugin checks the password length against the configured limits. If the password does not meet the requirements, an error message is displayed and the password change is rejected. The password hint also reflects the current length requirements.

Password change rejected for not meeting the length requirements

The configurable length rules measure characters, so a password written with accented or non-Latin letters is measured on the same terms as an ASCII one — “hasło” is five characters. See Complexity Rules for how the same counting applies to the other rules.

A separate, fixed limit rejects passwords larger than 4,096 bytes. Characters can occupy more than one byte, so this differs from the configurable character limits. The byte limit applies whenever the plugin constructs a password-policy object, even when length rules are disabled, the account is excluded from policies, or no active policy covers it. If the plugin cannot construct that object, the compliance check can be skipped.