diff --git a/app/Http/Controllers/Auth/LoginController.php b/app/Http/Controllers/Auth/LoginController.php index 5d72977..08b8cbf 100644 --- a/app/Http/Controllers/Auth/LoginController.php +++ b/app/Http/Controllers/Auth/LoginController.php @@ -126,8 +126,8 @@ protected function completeLogin($resourceOwner, $token) $account = User::updateOrCreate( ['id' => $resourceOwner->data->cid], ['email' => $resourceOwner->data->personal->email, - 'first_name' => ucfirst(mb_convert_encoding($resourceOwner->data->personal->name_first)), - 'last_name' => ucfirst(mb_convert_encoding($resourceOwner->data->personal->name_last)), + 'first_name' => ucfirst(mb_convert_encoding($resourceOwner->data->personal->name_first, "UTF-8")), + 'last_name' => ucfirst(mb_convert_encoding($resourceOwner->data->personal->name_last, "UTF-8")), 'rating' => $resourceOwner->data->vatsim->rating->id, 'rating_short' => $resourceOwner->data->vatsim->rating->short, 'rating_long' => $resourceOwner->data->vatsim->rating->long,