S
S
Shenku2021-09-29 18:22:01
1C-Bitrix
Shenku, 2021-09-29 18:22:01

How to implement your registration on Bitrix?

Good day, I'm making an authorization handler and ran into the following problem:
I realized that there is no authorization through the login password. First, I get the user by login, the password comes naturally encoded, and then I need to check the password for the identity of the entered one. and here's how it did.
I found an article about the fact that salt is generated and converted with a password to md5, but the result is zero ((

Maybe someone in the know?

Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Gritsuk, 2021-09-29
@Sh3nku

To check the entered password, use the \Bitrix\Main\Security\Password::equals($hash, $password, $original = true) method: bool
$hash - password hash stored in the b_user table in the PASSWORD field
$password - password, which needs to be checked

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question