• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Generate Joomla Password Hash

Generate Joomla Password Hash 8 years 9 months ago #35422

  • paypal24
  • paypal24's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
Hello @ all,

so i have to generate a useraccount from a form.
I can't use the Plugin because there will be additional validation for the creation so I try to generate the user via SQL Mapping.
so far so good - it seems however i don't get the password hash right - here is my code:
foreach($mappings as $mapping)
{
$data = unserialize($mapping->data);
if($data["password"] != ""){
$data["password"] = JUserHelper::hashPassword($data["password"]);
}
  $mapping->data = serialize($data);
}

If I create it this way and the hash seems fine:
$2y$10$E3sKCNpI73Ypci3/wnPc7uaHXGBaTrEIs40q7EUj8A25ZJ/PwyrZu

But when I try to log in it say´s the Password or useraccount doesn't match any account in the system.

Do i have to use another Joomla function?
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!