Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 2361

Joomla! 4.x Coding • Re: Add new Joomla 4 user via api

$
0
0
Thanks, I'm sure your answer is part of what I need.
$newUser = new \Joomla\CMS\User\User();

But I need to figure out how to structure the user object so it includes credentials. I've found this but don't know if it is the user object and if not, how to use it to create the object:
$data = array(
"name"=>$username,
"username"=>$username,
"password"=>$pass,
"password2"=>$pass,
"email"=>$email,
"block"=>0,
"groups"=>array("2","10")// user group
);

Statistics: Posted by dave1webb — Wed Feb 07, 2024 3:10 am



Viewing all articles
Browse latest Browse all 2361

Trending Articles