このコミットが含まれているのは:
守矢諏訪子 2022-02-18 15:46:36 +09:00
コミット ac5f5e1ab8
13個のファイルの変更43行の追加32行の削除

ファイルの表示

@ -63,14 +63,25 @@ class FathersController extends Controller {
];
try {
// DBに入ります。
EmailActivation::create($create);
// DBの値の準備。
DB::beginTransaction();
if (null !== ($oema = EmailActivation::where('email', $r->email)->first())) {
$oema->delete();
}
$emac = new EmailActivation;
$emac->fill($create);
$emac->push();
// メールを送ります。
Mail::to($r->email)->send(new FathersForgetPasswordMail($token));
// DBに入ります。
DB::commit();
} catch (\Throwable $e) {
// 失敗
Log::critical($e->getMessage());
DB::rollback();
return ['status_code' => 400, 'error_messages' => 'メールアドレスが未登録です。入力した情報を確認してください。'];
}

長すぎる行があるためファイル差分は表示されません

ファイルの表示

@ -57,7 +57,7 @@ const ParentForgotPassword = () => {
</span>
</LoadingButton>
{ _400error && <Alert type="fail" hide={()=>set400Error('')}>{_400error}</Alert> }
{ _success && <Alert type="success" hide={()=>setSucess('')}> {_success}</Alert> }
{ _success && <Alert type="success" hide={()=>setSuccess('')}>{_success}</Alert> }
</form>
</div>
</div>