Merge branch 'backend' of https://github.com/nakazawakan/kikikanri into c_account_total

このコミットが含まれているのは:
dragon1211 2021-11-10 15:51:50 +09:00
コミット a41ec1dd4c
1個のファイルの変更7行の追加7行の削除

ファイルの表示

@ -200,7 +200,8 @@ KIKI承知システムを使って「聞いてない」「言ってない
]; ];
try { try {
// DBに入ります。 // DBに入る又は変えります。
TelActivation::where('child_id', $result->id)->delete();
TelActivation::create($create); TelActivation::create($create);
// SMSを送ります。 // SMSを送ります。
@ -470,12 +471,11 @@ https://kikikan.jp/c-account/forgot-password/reset/'.$token;
return ['status_code' => 400, 'error_messages' => ['パスワードの更新に失敗しました。']]; return ['status_code' => 400, 'error_messages' => ['パスワードの更新に失敗しました。']];
} }
// if (isset($r->token)) { if (isset($r->token)) {
// if (null === ($child_id = TelActivation::select('child_id')->where('token', $r->token)->first())) { if (null === (TelActivation::select('id')->where('token', $r->token)->first())) {
// return ['status_code' => 400, 'error_messages' => ['パスワードの更新に失敗しました。']]; return ['status_code' => 400, 'error_messages' => ['パスワードの更新に失敗しました。']];
// } }
// $child_id = (int)$child_id->child_id; }
// }
// バリデーションエラー // バリデーションエラー
$validate = Validator::make($r->all(), [ $validate = Validator::make($r->all(), [