]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/Auth/RegisterController.php
Fixes typo causing the message not to be displayed
[bookstack] / app / Http / Controllers / Auth / RegisterController.php
index 4bf4c0178067e92e74e2f0c146447cd1d5de18af..8b0ef309aeba8c61d156a4fd0692dbc94e2ba712 100644 (file)
@@ -52,7 +52,7 @@ class RegisterController extends Controller
      */
     public function __construct(SocialAuthService $socialAuthService, EmailConfirmationService $emailConfirmationService, UserRepo $userRepo)
     {
-        $this->middleware('guest');
+        $this->middleware('guest')->except(['socialCallback', 'detachSocialAccount']);
         $this->socialAuthService = $socialAuthService;
         $this->emailConfirmationService = $emailConfirmationService;
         $this->userRepo = $userRepo;
@@ -298,5 +298,4 @@ class RegisterController extends Controller
         return $this->registerUser($userData, $socialAccount);
     }
 
-
 }
\ No newline at end of file