Forums / Cotonti / Support / Password Generator

Kilandor
#24140 2010-04-16 20:05
The password that is stored is just a pure MD5 hash of a string.

sed_unique is just something you can use to create a MD5 Hash, which can be used for something.

The example above will just create a random password. Which yes then you can use that as the "password" for the char.

$randpass = sed_unique(16); // 16 is password length
$passhash = md5($randpass);

$randpass is what you would login with
$passhash is what would be stored in the SQL field

If need help with how a normal registration goes, just checkout users.register.inc.php starting line 105~

You can use those 2 queries to create users. Just put them in a default group and not the inactive group.