Hi all,
as I understand the users concept in processwire, every user is a page with a template "user", right?
So a
foreach($pages->find("template=user, include=all") as $myuser) {
...
}
will cycle through all the users on my system ( I already did that, seems to work).
Now I want to edit a specific user.
In my understanding a
$myuser = $pages->find("template=user,name=$someusername);
$myuser = $pages->find("template=user,id=$someuserid);
....
gets a single user, but this seems wrong.
I'd love to get a specific user object to edit (name, password etc.) it and save it, but I don't know how to access it.
Regards, Thomas