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; } // バリデーションエラー