]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/Auth/UserInviteController.php
Show bookshelves that a book belongs to on a book view
[bookstack] / app / Http / Controllers / Auth / UserInviteController.php
index 8799d264cacee4c6ed0b45d997df8911ae4d4563..313faf5bc12cd656232bde005c2659c6d3ac0745 100644 (file)
@@ -77,7 +77,7 @@ class UserInviteController extends Controller
         $user->save();
 
         auth()->login($user);
-        session()->flash('success', trans('auth.user_invite_success', ['appName' => setting('app-name')]));
+        $this->showSuccessNotification( trans('auth.user_invite_success', ['appName' => setting('app-name')]));
         $this->inviteService->deleteByUser($user);
 
         return redirect('/');
@@ -96,7 +96,7 @@ class UserInviteController extends Controller
         }
 
         if ($exception instanceof UserTokenExpiredException) {
-            session()->flash('error', trans('errors.invite_token_expired'));
+            $this->showErrorNotification( trans('errors.invite_token_expired'));
             return redirect('/password/email');
         }