]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/Auth/SocialController.php
Cleaned some unused elements during testing
[bookstack] / app / Http / Controllers / Auth / SocialController.php
index dd567fe18b13843cce2ee97f0c342191199458da..2e9e6216200f2e44710b5e8303870718ff112b7a 100644 (file)
@@ -140,9 +140,9 @@ class SocialController extends Controller
         }
 
         $user = $this->registrationService->registerUser($userData, $socialAccount, $emailVerified);
+        $this->showSuccessNotification(trans('auth.register_success'));
         $this->loginService->login($user, $socialDriver);
 
-        $this->showSuccessNotification(trans('auth.register_success'));
         return redirect('/');
     }
 }