maicol07 However, login handles login and signup
Hm, it only logs users in though, it won't sign them up...
$options = array(
"url"=>"https://forum.url.net/forum/",
"root_domain"=>"https://url.net",
"api_key"=>"rAnd0mChaRs",
"password_token"=>"rAnd0mChaRs",
"cookies_prefix"=>"prefix"
);
$flarum = new Flarum($options);
$user = $flarum->user($Data['forum_username']);
$user_alias = $flarum->user();
$user->attributes->email = $Data['email'];
$user->attributes->password = $Data['password'];
$user->attributes->username = $Data['forum_username'];
$user->login();
header('location: https://forum.url.net/forum/');
exit;