Problem hashing

rafaelscouto 29 Nov, 2019
I'm using the chronoconectivity (save user) function, in the password field I pass the hash {var: hash_password} function.

In the save event, I call this function {fn: hash_password} and (save user) as well.

So far everything is going well, the hash is generated and saved in the database, but trying to access gives invalid password.

How to solve it?

Note

The field name is (Item.cpf), I'm using a mask on it, but before submitting I remove the mask leaving only the numbers.

I saw that if you do not hash, the password is written to the database normally, for example: 123456. That way the login works normally, but when I use hash_password the hash is generated but I can't login.


My hash_password
$password = $this->data["cpf"];
$pass = JUserHelper::hashPassword($password);
return $pass;
healyhatman 01 Dec, 2019
Answer
The save user action hashes the password already
rafaelscouto 01 Dec, 2019
Ohh God

hahahahaha

Thanks, I didn't atten at this
This topic is locked and no more replies can be posted.