修正
このコミットが含まれているのは:
コミット
ac5f5e1ab8
|
@ -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>
|
||||
|
|
新しいイシューから参照