MyBlogPlanner

April 27th, 2009

Create New joomla password function

Let me show you how you can create joomla password function

Here is the exmaple how you can create joomla 1.5.x password function.

function FnGenerateNewPassword($Password)
{
jimport(’joomla.user.helper’);

$salt        = JUserHelper::genRandomPassword(32);
$crypt        = JUserHelper::getCryptedPassword($Password, $salt);
$password    = $crypt.’:’.$salt;
return  $password;

}

Hope this will help you in some program. :)


Leave a Reply