Pular para o conteúdo principal

Set password complexity rules

This guide explains how to enforce rules for the passwords of the users of an organization.


Learning outcomes​

  • Choose the password rules of an organization.
  • Know where Casdoor checks the rules.

What you need​

  • Administrator access to the organization in the Casdoor admin console

Password rules​

OptionA password must
AtLeast6Have at least 6 characters
AtLeast8Have at least 8 characters
Aa123Contain at least one uppercase letter, one lowercase letter, and one digit
SpecialCharContain at least one special character
NoRepeatContain no repeated characters

You can select several options. A password must then satisfy all of them.

Set the rules​

  1. In the Casdoor admin console, go to User Management > Organizations and open the organization.

    Organization list with the edit button

  2. In Password complexity options, select the options.

    Password complexity options of the organization

  3. Save the organization.

Verify the result​

Casdoor checks new passwords against the rules in three places.

On the sign-up page:

Password check on the sign-up page

On the forgot-password page:

Password check on the forgot-password page

On the edit page of a user, when the password is changed:

Password check on the user edit page

See also​