blantonl
Member
I need to provision users in Xenforo 2.0 via an external registration system. Does anyone have any code examples or documentation on how to accomplish this?
I see in a previous thread that I can initialize the XF Framework and then access the user methods and objects, like below, but I don't documentation anywhere that tells us the attributes and methods to use to provision new user
After this, I'm stuck. Has anyone does this before that can provide an example of creating a new user, setting their new password and email address, and assigning a user to default user groups?
Thanks!
I see in a previous thread that I can initialize the XF Framework and then access the user methods and objects, like below, but I don't documentation anywhere that tells us the attributes and methods to use to provision new user
Code:
<?php
// bootstrap framework
$dir = __DIR__;
require($dir . '/src/XF.php');
XF::start($dir);
// create user
/** @var \XF\Service\User\Registration $registration */
$registration = XF::service('XF:User\Registration');
.....
After this, I'm stuck. Has anyone does this before that can provide an example of creating a new user, setting their new password and email address, and assigning a user to default user groups?
Thanks!