]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Middleware/Authenticate.php
Started moving MFA and email confirmation to new login flow
[bookstack] / app / Http / Middleware / Authenticate.php
index 3b018cde0f349f3b087507b7ea34864f48267f2a..c687c75a205ca925eaf88f88725498799d74c3bf 100644 (file)
@@ -7,17 +7,11 @@ use Illuminate\Http\Request;
 
 class Authenticate
 {
-    use ChecksForEmailConfirmation;
-
     /**
      * Handle an incoming request.
      */
     public function handle(Request $request, Closure $next)
     {
-        if ($this->awaitingEmailConfirmation()) {
-            return $this->emailConfirmationErrorResponse($request);
-        }
-
         if (!hasAppAccess()) {
             if ($request->ajax()) {
                 return response('Unauthorized.', 401);