]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Middleware/Authenticate.php
Update PageRepo.php
[bookstack] / app / Http / Middleware / Authenticate.php
index f3c6f592532834d87c71bce7c3af21c2a7060ece..ad804d0d86b15e16fb6c2bb6a553d7f4b29401ab 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 
-namespace Oxbow\Http\Middleware;
+namespace BookStack\Http\Middleware;
 
 use Closure;
 use Illuminate\Contracts\Auth\Guard;
-use Oxbow\Exceptions\UserRegistrationException;
+use BookStack\Exceptions\UserRegistrationException;
 use Setting;
 
 class Authenticate
@@ -38,6 +38,7 @@ class Authenticate
         if(auth()->check() && auth()->user()->email_confirmed == false) {
             return redirect()->guest('/register/confirm/awaiting');
         }
+
         if ($this->auth->guest() && !Setting::get('app-public')) {
             if ($request->ajax()) {
                 return response('Unauthorized.', 401);