CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> Tips & Solutions

 Joomla passwords encrypted from CodeCharge

Print topic Send  topic

Author Message

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;

{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

Web Database

Join thousands of Web developers who build Web applications with minimal coding.

Home   |    Search   |    Members   |    Register   |    Login

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