From 0af389d92d80923332d3dffe9edfad850ba04e70 Mon Sep 17 00:00:00 2001 From: blt950 Date: Wed, 25 May 2022 22:49:56 +0200 Subject: [PATCH] Forgot to save :))) --- app/Http/Controllers/Auth/LoginController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,