X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/9249addb5c458d30a5b06ff1ccc3a4e1b5d29acb..refs/pull/3616/head:/app/Http/Controllers/Auth/SocialController.php diff --git a/app/Http/Controllers/Auth/SocialController.php b/app/Http/Controllers/Auth/SocialController.php index dd567fe18..1691668a2 100644 --- a/app/Http/Controllers/Auth/SocialController.php +++ b/app/Http/Controllers/Auth/SocialController.php @@ -27,8 +27,7 @@ class SocialController extends Controller SocialAuthService $socialAuthService, RegistrationService $registrationService, LoginService $loginService - ) - { + ) { $this->middleware('guest')->only(['getRegister', 'postRegister']); $this->socialAuthService = $socialAuthService; $this->registrationService = $registrationService; @@ -140,9 +139,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('/'); } }