Answer the question
In order to leave comments, you need to log in
How to remove the password length limit in Bitrix Aspro?
Good afternoon.
I set the minimum password length for user groups to 1 character ( example )
With this option, it turned out to create a user through the Bitrix api with a password length of less than 6 characters. If you log in as an Administrator, then on the user list page you can log in through this user.
And when trying to log in through the public part - an error (Minimum 6 characters) ( example )
Where else can I turn off the password restriction?
The site runs on the Aspro template, if that matters.
Answer the question
In order to leave comments, you need to log in
In the admin panel settings->users->groups
Security tab
We require a password. Customize for each group.
For new versions of Bitrix (after ~20), the minimum length = 6 characters is hard-coded in the kernel code.
If you really need it, you can manually fix the /bitrix/modules/main/lib/authentication/policy/rulescollection.php file, line
'PASSWORD_LENGTH' => new GreaterRule(Loc::getMessage('GP_PASSWORD_LENGTH'), 6)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question