]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Middleware/ApiAuthenticate.php
Added testing coverage to API token auth
[bookstack] / app / Http / Middleware / ApiAuthenticate.php
index c7fed405cc41e77b4176225a386b497e9793bc63..fffbd9ef6cbdd480beb1c89ca2bae9c6b1809b0f 100644 (file)
@@ -35,7 +35,7 @@ class ApiAuthenticate
         }
 
         if ($this->awaitingEmailConfirmation()) {
-            return $this->emailConfirmationErrorResponse($request);
+            return $this->emailConfirmationErrorResponse($request, true);
         }
 
         return $next($request);