Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $password = JUserHelper::genRandomPassword();
- $params = array(
- 'name' => $name,
- 'username' => $username,
- 'email' => $email,
- 'password' => $password,
- 'password2' => $password
- 'groups' => array(2),
- 'sendEmail' => 0,
- 'block' => 0
- );
- $user = new JUser(0);
- $user->bind($params);
- $user->save();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement