From 60034986b59c0ba5b501d525fb41678846988cd3 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: Wed, 10 Nov 2021 16:41:29 +0900 Subject: [PATCH] =?UTF-8?q?=E3=81=94=E3=82=81=E3=82=93?= 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, 3 insertions(+), 1 deletion(-) diff --git a/backend/app/Http/Controllers/Api/ChildrenController.php b/backend/app/Http/Controllers/Api/ChildrenController.php index 7614a5a5..96699310 100644 --- a/backend/app/Http/Controllers/Api/ChildrenController.php +++ b/backend/app/Http/Controllers/Api/ChildrenController.php @@ -472,9 +472,11 @@ https://kikikan.jp/c-account/forgot-password/reset/'.$token; } if (isset($r->token)) { - if (null === (TelActivation::select('id')->where('token', $r->token)->first())) { + if (null === ($ta = TelActivation::select('child_id')->where('token', $r->token)->first())) { return ['status_code' => 400, 'error_messages' => ['パスワードの更新に失敗しました。']]; } + + $child_id = $ta->child_id; } // バリデーションエラー