mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 05:04:07 -08:00
Reflash session so login message is displayed
This commit is contained in:
parent
549dec9f9e
commit
dc6a5bf998
|
@ -5,6 +5,7 @@ namespace App\Http\Controllers;
|
||||||
use Illuminate\Support\Facades\Artisan;
|
use Illuminate\Support\Facades\Artisan;
|
||||||
use Illuminate\Http\RedirectResponse;
|
use Illuminate\Http\RedirectResponse;
|
||||||
use \Illuminate\Contracts\View\View;
|
use \Illuminate\Contracts\View\View;
|
||||||
|
use Illuminate\Support\Facades\Session;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -44,6 +45,8 @@ class DashboardController extends Controller
|
||||||
|
|
||||||
return view('dashboard')->with('asset_stats', $asset_stats)->with('counts', $counts);
|
return view('dashboard')->with('asset_stats', $asset_stats)->with('counts', $counts);
|
||||||
} else {
|
} else {
|
||||||
|
Session::reflash();
|
||||||
|
|
||||||
// Redirect to the profile page
|
// Redirect to the profile page
|
||||||
return redirect()->intended('account/view-assets');
|
return redirect()->intended('account/view-assets');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue