Skip to content
Snippets Groups Projects
Commit 61ad77eb authored by Tibo's avatar Tibo
Browse files

redirect to organizations list is already authenticated

parent 9b8ceac1
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,11 @@ if (app()->environment('prod') && !empty($app_url)) {
Route::get('/', function () {
// already logged in
if (auth()->user()) {
return redirect(action("OrganizationController@index"));
}
return view('index');
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment