I have a main website www.generic.com with flarum at generic.com/flarum . On account creation on the main website, I make one with the same credentials on forum.
if(DB::table('forum_users')->where('email', $user->email)->exists())
{
DB::table('forum_users')->where('email', $user->email)->update(['is_activated' => '1']);
}
else {
DB::table('forum_users')->insert(
['username' => $user->name, 'email' => $user->email, 'is_activated'=> '1', 'password' => bcrypt($user->password)]
);
}
The thing is that on localhost it works. On production, the user is created, but when you try to log in, you get
Your login details were incorrect.
{
"errors": [
{
"status": "401",
"code": "permission_denied"
}
]
}
Also, Pusher is not working.. no errors displayed, the app_id, key, secret and cluster are set correct. On pusher page I can see "Peak connections today " but no messages are being sent.
Any ideas on this?