Commit c4bdaab6 authored by Jack Stupple's avatar Jack Stupple

fallback on useragent

parent 69e05ac5
......@@ -35,7 +35,7 @@ class PlayerController extends Controller
}
$player = new Player();
$player->user_agent = json_encode($request->input('platform')); // $request->server('HTTP_USER_AGENT'); # deemed unreliable as it's always going to be managing money or expo
$player->user_agent = $request->input('platform') ? json_encode($request->input('platform')) : $request->server('HTTP_USER_AGENT'); // $request->server('HTTP_USER_AGENT'); # deemed unreliable as it's always going to be managing money or expo
$player->session_id = str_random(32);
$player->save();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment