CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> Tips & Solutions

 Joomla passwords encrypted from CodeCharge

Print topic Send  topic

Author Message
gaetgodi

Posts: 9
Posted: 11/07/2009, 1:01 PM

I recently needed to create passwords for users created in Codecharge and added to Joomla.

I added the following line to the includes area of the code section of the page prompting for the password:

include_once(RelativePath . "/libraries/joomla/user" . "/helper.php");

then I used the following code to create the password (in the before insert event)

$salt = JUserHelper::genRandomPassword(32);
$crypt = JUserHelper::getCryptedPassword($password, $salt);
$pwd = $crypt.':'.$salt;

where,
{password} is the password that I wished to encrypt

I assume you know how to create the $password variable and how to set the subsequent $pwd variable.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.