• 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: TEMPORARY PASSWORD GENRATE

TEMPORARY PASSWORD GENRATE 8 years 2 weeks ago #36735

Hi,

I am using rsform in joomla. I want a random temporary password to be sent to the user in the registration email. But I am not able to generate a random password.

Please guide.

Charanjeet Singh
The administrator has disabled public write access.

TEMPORARY PASSWORD GENRATE 6 years 10 months ago #38294

I am looking to do the same thing. Honestly, I am astonished that a simple random password plugin doesn't exist to do this.

I found this script to do the hashed pw but implementing it into RSForms I haven't quite figured out yet. Here is the script in case this gets you any closer. As soon as I get it worked out I will try to post.

Code display:
$key = "";
        srand((double)microtime() * rand(1000, 9999));
        $charset = "abcdefghijkmnopqrstuvwxyzABCDEFGHIJKLMNPQRSTUVWXYZ0123456789";
        for($len=0; $len<8; $len++)
            $key .= $charset[rand(0, strlen($charset)-1)];
        //End of part 1, you will have a simple random password here in $key
        $salt = JUserHelper::genRandomPassword(32);
        $crypt = JUserHelper::getCryptedPassword($key, $salt);
        $password = $crypt . ':' . $salt;
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!