(solvsd) AutoGenerate Password help

jmoises

Active Member
Hello, i have a simple question, it is posible to add new users to joomla from a Fabrik Form, but the password generated via php?

thanks for any tip or advise
 
It simple, as troester said you need use php validation with replace then use the php code below :

Code:
$length = 10;
  $key = "";
  // define possible characters
  $possible = "0123456789bcdfghjkmnpqrstvwxyzBCDFGHJKLMNPQRTVWXYZ";
  $i = 0;
  while ($i < $length) {
    $char = substr($possible, mt_rand(0, strlen($possible)-1), 1);
      $key .= $char;
      $i++;
  }
  return $key;

It will generate password with 10 length as mention at code above.
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top