Problem hashing

How to prevent double-hashing passwords in ChronoForms.

Overview

The issue occurs because the password is being hashed twice—once manually before saving and again automatically by the CF save user action.
Remove the manual hash function call and let the save user action handle password hashing automatically.

Answered
Connectivity v6
ra 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;
he healyhatman 01 Dec, 2019
Answer
The save user action hashes the password already
This topic is locked and no more replies can be posted.