Hey, currently i´m trying to log a user over a extension in.
I have tried this:
i´m using the Flarum\Forum\Controller\AuthenticateUserTrait.
$email = "my@email.com";
$this->authenticate(compact('email'));
Error:
Fatal error: Call to a member function fire() on null in C:\xampp\htdocs\forum\vendor\flarum\core\src\Core\User.php on line 142
Have anyone a solution?
The user with the email exist.