Quantcast
Viewing all articles
Browse latest Browse all 2274

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

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 2274

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>