Thanks for making this extension. I am starting a new project so I am just testing things out at the moment. I have everything installed including the extension and the plugin. I have put the admin user id and 40 character api key in the database. I am trying to use the example to test things out but it seems to fail on this conditional statement. Anybody that has done this can you help out with the login?
// Dummy users
$users = [
'user' => [
'password' => 'password',
'email' => 'user@example.com',
],
'admin' => [
'password' => 'password',
'email' => 'user1@example.com',
],
];
// Get username and password
$username = $_POST['username'] ?? '';
$password = $_POST['password'] ?? '';
if (!empty(Arr::get($users, $username)) && Arr::get($users, "$username.password") === $password) {
require_once __DIR__ . '/flarum.php';