From 69e92d6454af859ba34bec3374d94e2929281dc0 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 21 Jun 2018 11:08:49 -0500 Subject: [PATCH] initial pass --- .../Auth/VerificationController.php | 42 +++++++++++++++++++ app/Http/Kernel.php | 1 + 2 files changed, 43 insertions(+) create mode 100644 app/Http/Controllers/Auth/VerificationController.php diff --git a/app/Http/Controllers/Auth/VerificationController.php b/app/Http/Controllers/Auth/VerificationController.php new file mode 100644 index 00000000..b5d8ba33 --- /dev/null +++ b/app/Http/Controllers/Auth/VerificationController.php @@ -0,0 +1,42 @@ +middleware('auth'); + $this->middleware('signed')->only('verify'); + $this->middleware('throttle:6,1')->only('verify', 'resend'); + } +} diff --git a/app/Http/Kernel.php b/app/Http/Kernel.php index b1188017..a14153c2 100644 --- a/app/Http/Kernel.php +++ b/app/Http/Kernel.php @@ -58,5 +58,6 @@ class Kernel extends HttpKernel 'can' => \Illuminate\Auth\Middleware\Authorize::class, 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, + 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, ]; }