From 149a2d5afa4fa8f43624e825d0a9a3210949ba43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=86=E3=82=AF=E3=83=8B=E3=82=AB=E3=83=AB=E8=AB=8F?= =?UTF-8?q?=E8=A8=AA=E5=AD=90?= Date: Thu, 23 Dec 2021 18:28:22 +0900 Subject: [PATCH] =?UTF-8?q?=E3=80=8C=E5=AD=90=E3=81=AE=E6=9C=AC=E7=99=BB?= =?UTF-8?q?=E9=8C=B2=E6=99=82=E3=81=ABID=E8=87=AA=E5=8B=95=E4=BB=98?= =?UTF-8?q?=E4=B8=8E=E6=A9=9F=E8=83=BD=E3=80=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/Http/Controllers/Api/ChildrenController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/app/Http/Controllers/Api/ChildrenController.php b/backend/app/Http/Controllers/Api/ChildrenController.php index e4fcc7d9..60639762 100644 --- a/backend/app/Http/Controllers/Api/ChildrenController.php +++ b/backend/app/Http/Controllers/Api/ChildrenController.php @@ -90,12 +90,12 @@ class ChildrenController extends Controller { public function checkRegisterMain (Request $r) { // トークンの確認 - if (null === ($get = TelActivation::where('token', $r->token)->first())) { + if (null === ($get = TelActivation::select('id')->where('token', $r->token)->first())) { return ['status_code' => 400, 'error_messages' => ['不正な登録トークン。']]; } // 本登録に成功 - return ['status_code' => 200]; + return ['status_code' => 200, 'params' => $get]; } public function registerMain (Request $r) {