Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question