*
* ...etc.
*/
-
-require_once('include/user.php');
-
use Friendica\Core\Config;
+use Friendica\Model\User;
function ldapauth_install()
{
if (empty($results)) {
if (strlen($email) > 0 && strlen($name) > 0) {
$arr = array('username' => $name, 'nickname' => $username, 'email' => $email, 'password' => $password, 'verified' => 1);
- $result = create_user($arr);
+ $result = User::create($arr);
if ($result['success']) {
logger("ldapauth: account " . $username . " created");
} else {