Commit 96096154 authored by Julien Sailly's avatar Julien Sailly
Browse files

feat: nav-bar working + user infos added

parent 1bd13688
Loading
Loading
Loading
Loading
+8 −9

File changed.

Preview size limit exceeded, changes collapsed.

+7 −1
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@
    }
    if($user->checkPassword($request->password))
    {
        session(['userid' => $user->US_ID]);
        session(['user' => $user]);
        return redirect('/dives'); // TODO: Redirect to the user's hub page
    }
    else
@@ -55,6 +55,12 @@
    return view('welcome');
})->name('homepage');

Route::get('/logout', function ()
{
    session()->flush();
    return redirect('/');
})->name('logout');


Route::middleware('auth:sanctum')->get('/dives', [DivingSignUpController::class, 'show'])->name('dives');