From 45cd6283262391989df3089a61862e6a64f3d930 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: Thu, 30 Dec 2021 19:18:30 +0900 Subject: [PATCH] =?UTF-8?q?=E6=9C=89=E5=8A=B9=E6=9C=9F=E9=99=90=E3=81=8C?= =?UTF-8?q?=E5=88=87=E3=82=8C=E3=81=9F=E3=82=A2=E3=82=AB=E3=82=A6=E3=83=B3?= =?UTF-8?q?=E3=83=88=E3=81=AE=E5=89=8A=E9=99=A4=E3=81=8C=E6=AD=A3=E3=81=97?= =?UTF-8?q?=E3=81=8F=E8=A1=8C=E3=82=8F=E3=82=8C=E3=81=A6=E3=81=84=E3=81=AA?= =?UTF-8?q?=E3=81=84=E3=81=8B=E3=81=A8=E6=80=9D=E3=81=84=E3=81=BE=E3=81=99?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/Http/Controllers/Api/FathersController.php | 2 +- backend/app/Http/Middleware/Authenticate.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/app/Http/Controllers/Api/FathersController.php b/backend/app/Http/Controllers/Api/FathersController.php index 9aec0fff..e7c23574 100644 --- a/backend/app/Http/Controllers/Api/FathersController.php +++ b/backend/app/Http/Controllers/Api/FathersController.php @@ -85,7 +85,7 @@ class FathersController extends Controller { public function registerTemporary (Request $r) { $validate = Validator::make($r->all(), [ - 'email' => 'required|unique:fathers|unique:email_activations|max:255|email', + 'email' => 'required|unique:fathers|max:255|email', 'relation_limit' => 'required|numeric', ]); diff --git a/backend/app/Http/Middleware/Authenticate.php b/backend/app/Http/Middleware/Authenticate.php index 9af87d07..c5676e93 100644 --- a/backend/app/Http/Middleware/Authenticate.php +++ b/backend/app/Http/Middleware/Authenticate.php @@ -14,13 +14,13 @@ class Authenticate extends Middleware * @return string|null */ protected function redirectTo($request) { - if (! $request->expectsJson()) { + if (!$request->expectsJson()) { return route('login'); } } public function handle ($request, Closure $next, ...$guard) { - if (!$request->session()->has($guard)) { + if (!$request->session()->has($guard[0])) { return redirect(route($guard[0].'login')); }