Y
Y
Yuri Voronin2020-11-12 10:17:44
1C-Bitrix
Yuri Voronin, 2020-11-12 10:17:44

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

2 answer(s)
A
Andrey Savrasov, 2020-11-12
@alcorn

In the admin panel settings->users->groups
Security tab
We require a password. Customize for each group.

@
@atreesun, 2022-03-04
_

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)

replace 6 with the correct number.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question